Check data-* name restrictions #1107
Labels
spec: EPUB 3.x
Impacting the support of EPUB 3.x specifications
status: has PR
The issue is being processed in a pull request
type: improvement
The issue suggests an improvement of an existing feature
Milestone
I noticed that we check that data-* attributes are allowed in both XHTML and SVG content documents but we don't appear to be enforcing the naming restrictions in the HTML specification -- specifically that the name can't begin with "xml" or contain upper-ascii characters.
https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes
The text was updated successfully, but these errors were encountered: