View Single Post
Old 05-03-2024, 06:46 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
Yes rule _061 just restates the specification rules regarding the naming of custom data- attributes in html5:

Quote:
Custom data attributes must be named with the prefix 'data-', followed by at least one character. The attribute name should not contain any uppercase letters, and must be at least one character long after the 'data-' prefix. The attribute name should not contain any semicolons.
And in each case your data- attribute uses mixed upper and lower case names which violates the rules.

The javascript you are using probably relies on those mixed case names.

So use Find and Replace to generate a list of every attribute that begins with "data-" and uniquely sort them. Then search through your javascript code replacing every occurrence with its lowercase equivalent. Then for the xhtml, do the same. It could just be the start and end state ones. So if you are really lucky it might turnout to be a really short list of data- attribute names that need to be fixed.

If this is a third party javascript library, I would look for a more spec compliant version or I would file a bug report against it as it does not meet spec.

Last edited by KevinH; 05-03-2024 at 07:16 PM.
KevinH is offline   Reply With Quote