Support for HTML5 boolean attributes
See original GitHub issueI haven’t gone into this extensively, but you should at least consider adding autofocus
to your list of boolean attributes. Thanks 😃
Issue Analytics
- State:
- Created 10 years ago
- Comments:27 (6 by maintainers)
Top Results From Across the Web
Boolean attributes - HTML 5
A number of attributes in HTML5 are boolean attributes . The presence of a boolean attribute on an element represents the true value,...
Read more >Boolean attributes - HTML Spec
A number of attributes are boolean attributes . The presence of a boolean attribute on an element represents the true value, and the...
Read more >HTML attribute reference - HTML: HyperText Markup Language
Attribute Name Elements Description
accept‑charset List of supported charsets.
align, , , , , , , , , , , , , Specifies the horizontal...
Read more >HTML Boolean Attributes | JoeQuery
A number of attributes are boolean attributes. The presence of a boolean attribute on an element represents the true value, and the absence...
Read more >What does it mean in HTML 5 when an attribute is a boolean ...
A number of attributes are boolean attributes. The presence of a boolean attribute on an element represents the true value, and the absence...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you prefer the list:
I was searching for a similar list when I came upon this discussion. I thought you might benefit from an updated list. I started with @mathiasbynens’ idea to grep the spec but modified it to only look within the IDL blocks and look at the single-page spec. Then I stripped all the markup and removed every readonly attribute (since these can’t be set via markup). I sorted / deduped and this is what I am seeing. Note that it includes a few
<video>
and<audio>
tag attributes which aren’t present in your list as of 10 months ago.You will probably want to lowercase these for your purposes. Thanks for the starter ideas.