You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This should be ideally delegated to validator.nu, but I added a new check for it until we fully integrate the HTML checker.
I don't think validator.nu fully implements the rules btw (it does not complain if the attribute contains upper alphas). But in any case, I don't expect this check to report much new errors with existing content… we'll see!
Activity
feat: check "data-*" attributes name restrictions
rdeltour commentedon Dec 23, 2022
This should be ideally delegated to validator.nu, but I added a new check for it until we fully integrate the HTML checker.
I don't think validator.nu fully implements the rules btw (it does not complain if the attribute contains upper alphas). But in any case, I don't expect this check to report much new errors with existing content… we'll see!
feat: check "data-*" attributes name restrictions