- From: CVS User lsilli <cvsmail@w3.org>
- Date: Thu, 26 Sep 2013 16:01:57 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html-xhtml-author-guide In directory roscoe:/tmp/cvs-serv13202/html-xhtml-author-guide Modified Files: html-xhtml-authoring-guide.html Log Message: Clarified the the language of the section #css-and-namespaced-attributes. --- /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html 2013/09/26 14:39:45 1.135 +++ /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html 2013/09/26 16:01:57 1.136 @@ -1034,15 +1034,16 @@ </p> </section> <section id="css-and-namespaced-attributes" class="section"> - <h3>CSS: Attribute selectors that requires a namespace prefix</h3> - <p>CSS allows authors to target elements by referring to their attributes – so called attribute selectors: - <code class="css">[attr]{rule:foo}</code>. And for the bulk of attributes, this method can be used freely in - since <a>polyglot markup</a> relies on default namespaces, which do not apply to attributes. + <h3>CSS: Attribute selectors that require a namespace prefix</h3> + <p>CSS allows authors to select elements by referencing their attributes using so called attribute selectors: + <code class="css">[attr]{rule:foo}</code>. And for the most part, attribute selectors can be used freely + since <a>polyglot markup</a> relies on default namespaces, which do not affect attributes. However, some of the attributes required by <a>polyglot markup</a>, are namespaced – either by default (such as for the <code>xmlns</code> attribute) or via a prefix that by default is namespaced (such as <code>xml:</code>, - <code>xmlns:</code>, <code>xlink:</code>). As result, a selector such as <code class="css">[xmlns]{rule:foo}</code> - will only work in HTML – it will not work in XHTML, and the same goes for prefixed - attributes – even if you escape the colon (<code class="css">[xml\:lang]{rule:foo}</code>), such selectors + <code>xmlns:</code>, <code>xlink:</code>). Extension specs might allow even other namespaced attributes than + those defined by the HTML specification. As result, a selector such as <code class="css">[xmlns]{rule:foo}</code> + will only work in HTML – it will not work in XHTML, where it is a namespace attribute. And the same goes for prefixed + attributes – even if one escapes the colon (<code class="css">[xml\:lang]{rule:foo}</code>), such selectors will only work in HTML.</p> <p>To be able to select namespaced attributes in XML, the attribute selector must include a <a
Received on Thursday, 26 September 2013 16:01:58 UTC