W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

[csswg-drafts] [selectors] Class selectors in Selectors-3 need updating for HTML 5

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 Jan 2018 14:01:05 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-288917029-1516111263-sysbot+gh@w3.org>
svgeesus has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors] Class selectors in Selectors-3 need updating for HTML 5 ==
Selectors 3 limits the dot notation to HTML and allows processors that understand (as examples) SVG or MathML to also use it.

>UAs may apply selectors using the period (.) notation in XML documents if the UA has namespace-specific knowledge that allows it to determine which attribute is the "class" attribute for the respective namespace. One such example of namespace-specific knowledge is the prose in the specification for a particular namespace (e.g. SVG 1.1 [SVG11] describes the SVG class attribute and how a UA should interpret it, and similarly MathML [MATHML3] describes the MathML class attribute.) 


HTML5 incorporates both SVG and MathML and thus, use of dot notation should be moved from an optional example to a conformance requirement to align with HTML5.

Needs tests.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2190 using your GitHub account
Received on Tuesday, 16 January 2018 14:01:16 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:23 UTC