-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Replace _
with -
in Symbol attribute values
#766
Conversation
This provides better consistency with Symbol keys and makes it easier to work with standard multi-word HTML attribute values, such as `content_editable: :plaintext_only`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I don't think I've ever run into this, but I think I would have expected it to work the way that this PR changes it to work. 🎉
Am I missing something, but what happened to the |
@joelmoss it was renamed: #653 (comment) |
The |
I missed that, but when and why was it removed? I rely on that and don't like the idea of monkey patching ( |
FWIW, it’s very unlikely we’ll rename |
Can we at least make |
Let’s open an issue for that. There are so many caveats to patching that method, I’m not sure if it’s something we want to encourage. |
I even commented on it! 🤦♂️ |
This provides better consistency with Symbol keys and makes it easier to work with standard multi-word HTML attribute values, such as
contenteditable: :plaintext_only
.