-
Notifications
You must be signed in to change notification settings - Fork 284
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
diet doesn't allow boolean attributes without value in HTML5 #475
Comments
I don't find the discussion now, but people have expressed the desire for this behavior for better backwards compatibility with non-HTML 5 conformant browsers. Maybe a global run time switch makes sense to force the short version? |
Couldn't we use the |
@s-ludwig: yeah, can we use doctype to determine it? Btw, Jade wants to deprecate the !!! tag in favor of doctype tag, are we going to do the same? |
|
Yes, supporting HTML doctypes < 5 + dropping the mirroring on 5 sounds like a reasonable solution. Then everyone can decide for himself if backwards compatibility with non-HTML 5 browsers is needed or not. |
Fix: #512 |
Fix issue #475: diet doesn't allow boolean attributes without value in H...
@s-ludwig I guess we can close it now? |
Right, no I think it should be fine now. |
Nice, thanks guys. |
I wanted to get
<textarea autofocus></textarea>
, so I triedtextarea(autofocus)
in the diet template but that results in<textarea autofocus="autofocus"></textarea>
.http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-attribute
The text was updated successfully, but these errors were encountered: