-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Empty Value Attribute Handling #75
Comments
@NiklasPor Hello, we appreciate any contribution that benefits the package, feel free to do so. This task is more likely to be |
@Scrum Hm, when I debugged this I also received So I think this is mainly part of the parser, but also requires change inside the renderer. |
@NiklasPor strange, I see a different parser result https://runkit.com/scrum/60caf310c34719001bbc7c06 |
feat: add `recognizeNoValueAttribute` option for issue #75
Hi all, great package, love it so far 🚀
I'm currently struggling with one problem tho: The HTML attributes that have no specific value, actually automatically get transformed to have a value of their own key.
I think this transformation is kinda weird, especially since the current HTML standard is specifying that the value of an empty attribute is actually an empty string, not a string that matches the name of the attribute:
https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
Additionally, it breaks the behavior of some JS / HTML frameworks, which is a pity. Here's a quick example without any plugins installed:
Input
Expected
Output
I'd also be open to contributing and fixing this if it would be appreciated.
Kind regards
Niklas
The text was updated successfully, but these errors were encountered: