Community
Participate
Working Groups
The HTML attribute validator, which accounts for data- attributes, does not validate the attribute's value when the attribute is contributed via modelquery extension. A data- attribute should be validated if it's contributed via MQE.
Created attachment 189943 [details] patch
Code checked in.
Patch doesn't check for an HTML5 document.
Created attachment 203706 [details] additional patch
I understand the need for this, but HTML documents have the potential to have no doctype. I would recommend using the DocumentTypeAdapter for the ownerDocument and use hasFeature(HTMLDocumentTypeConstants.HTML5) to check if the document is HTML5. This gives the added benefit of adhering to the Web Content Settings.
Corrected based on Nick's feedback and committed to 3.2.5, 3.3.2, and HEAD.