Any plans for boolean attribute support?
Opened this issue · 3 comments
Hi! Great library, enjoying it greatly!
I was wondering if there are any plans to support boolean attributes, as specified here: https://html.spec.whatwg.org/#boolean-attributes
I have a use case for it on a project and would definitely like to continue using mochiweb for html parsing in that project.
Thanks!
I've looked into this a bit more and the specific issue I'm running into is being able to produce attributes that are only the attribute name such as:
<div disabled></div>
I believe that this library is compliant by the spec, from what I can tell, but people may be expecting / desiring the above for boolean attributes at times.
The only maintenance I’ve done to this library over the past few years is fixing the occasional bug. I’d be happy to review a PR for this feature though.
Thanks for the reply. I'll look into it, but I'm still getting up to speed on Erlang, currently using this via Elixir (Floki).