Skip to content

Commit

Permalink
Add html5 boolean attributes to the list
Browse files Browse the repository at this point in the history
  • Loading branch information
cillianderoiste committed Jul 26, 2024
1 parent 93a9670 commit fe3fe16
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
4.4 (unreleased)
================

- Nothing changed yet.
- Extend boolean html attribute list to include all html5 boolean attributes.


4.3 (2024-02-01)
Expand Down
36 changes: 29 additions & 7 deletions src/z3c/pt/pagetemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,40 @@
# form <img ismap>, as required by XML 1.0.
# From https://www.w3.org/TR/xhtml1/#C_10 and
# https://www.w3.org/TR/xhtml1/#h-4.5
# Updated to also include html5 attributes as listed on
# https://html.spec.whatwg.org/multipage/indices.html#attributes-3
"allowfullscreen",
"async",
"autofocus",
"autoplay",
"checked",
"compact",
"nowrap",
"ismap",
"controls",
"declare",
"noshade",
"checked",
"default",
"defer",
"disabled",
"readonly",
"formnovalidate",
"inert",
"ismap",
"itemscope",
"loop",
"multiple",
"selected",
"muted",
"nomodule",
"noresize",
"defer",
"noshade",
"novalidate",
"nowrap",
"open",
"playsinline",
"readonly",
"required",
"reversed",
"selected",
"shadowrootclonable",
"shadowrootdelegatesfocus",
"shadowrootserializable",
]
)

Expand Down

0 comments on commit fe3fe16

Please sign in to comment.