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

Any plans for boolean attribute support? #195

Open
m11m opened this issue Nov 25, 2017 · 3 comments
Open

Any plans for boolean attribute support? #195

m11m opened this issue Nov 25, 2017 · 3 comments

Comments

@m11m
Copy link

m11m commented Nov 25, 2017

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!

@m11m
Copy link
Author

m11m commented Nov 26, 2017

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.

@etrepum
Copy link
Member

etrepum commented Nov 26, 2017

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.

@m11m
Copy link
Author

m11m commented Nov 26, 2017

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants