-
Notifications
You must be signed in to change notification settings - Fork 79
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
Support for Element::add_attribute
#205
Comments
Note that from the perspective of the HTML spec, The difference is purely aesthetic, which isn't something I'm aware of existing in (disclaimer: not a maintainer) |
Absolutely, thanks for clearing that up. My point is that I'll be reading the generated output and |
I'm using the ruby binding for
lol_html
and would really like to be able to transform<p>Foo</p>
into<p data-this-is-special>Foo</p>
.I understand that the
lol_html
API currently implements Element.html#set_attribute with a String value, but does not yet provide a similarElement#add_attribute
-method which writes an attribute without a String value.Is
Element#add_attribute
something other ppl are interested in and something someone else would be willing to implement? I myself have no rust knowledge (yet) and would have to depend on someone else to provide the code here :)The text was updated successfully, but these errors were encountered: