-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Handle boolean attributes? #1
Comments
Hi,
This caused by the fact that attribute values are handled by the later stage of the page processing in browser (e.g. building render tree, when it decide to not consider |
Hi thanks for clearing this up. As far as I understand So I guess I need to take care of that on my part. |
Yes, |
Adding parse errors for tag name state
I am building an html2xhtml converter on top of parse5 (https://github.com/cburgmer/http2xhtml.js/blob/master/lib/converter.js).
It seems I need to handle boolean attributes (e.g.
<input type="checkbox" checked>
) myself.parse5 will return such an attribute as
{name: "checked", value: ""}
. This does not allow me to distinguish from actual attributes with empty string values.I could not find much more information on those kind of attributes, so I am posing this as a question: should the parser know about those attributes and return something accordingly?
The text was updated successfully, but these errors were encountered: