Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat [data-turbo-stream] as boolean attribute #630

Merged
merged 1 commit into from Jul 17, 2022

Commits on Jul 17, 2022

  1. Treat [data-turbo-stream] as boolean attribute

    Replace equality checks for `[data-turbo-stream="true"]` with presence
    checks for `[data-turbo-stream]` to more closely match the canonical
    behavior for [boolean HTML attributes][].
    
    Turbo already supports other boolean attributes like
    `[data-turbo-permanent]` and `[data-turbo-confirm]`, so
    `[data-turbo-stream]` should match the precedent.
    
    [boolean HTML attributes]: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes#boolean_attributes
    seanpdoyle committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    f9895d6 View commit details
    Browse the repository at this point in the history