- From: CVS User egraff <cvsmail@w3.org>
- Date: Wed, 24 Apr 2013 02:12:26 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html-xhtml-author-guide In directory roscoe:/tmp/cvs-serv23469 Modified Files: html-xhtml-authoring-guide.html Log Message: Added 7.3 Attributes with Special Considerations, per bug 21163. --- /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html 2013/04/24 01:31:41 1.100 +++ /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html 2013/04/24 02:12:26 1.101 @@ -251,6 +251,22 @@ <a title="polyglot markup">Polyglot markup</a> does not declare these prefixes via xmlns. The prefixes are implicitly declared in XML and are automatically applied to the appropriate attributes in HTML. </p> + <p> + The prefixed attributes, such as <code>xml:lang=""</code>, are "namespaced" within XHTML, SVG and MathML. + Thus, they can be styled via CSS3 namespaces. [[!CSS3NAMESPACE]] + However, for the HTML serialization, <code>xml:lang</code> would then not have the xml namespace effect. + A style such as the following is valid in XHTML, SVG, and MathML, + it does not work in HTML and is therefore not used in <a>polyglot markup</a>. + </p> + <pre class="example highlight"> +<style type="text/css"> +@namespace xml "http://www.w3.org/XML/1998/namespace"; +*[xml|lang]{background:lime;} +</style> + </pre> + <p> + + </p> <!-- End section, "Attribute-Level Namespaces" --> </section> <!--End section: Namespaces--> @@ -692,6 +708,24 @@ <!-- End section: The id Attribute --> </section> + + <section id="attributes-styled-via-css-namespaces" class="section"> + <h4>Attributes Styled Using CSS Namespaces</h4> + <p> + The prefixed attributes, such as <code>xml:lang=""</code>, are "namespaced" within XHTML, SVG and MathML. + Thus, they can be styled via CSS3 namespaces. [[!CSS3NAMESPACE]] + However, for the HTML serialization, <code>xml:lang</code> would then not have the xml namespace effect. + A style such as the following is valid in XHTML, SVG, and MathML, + it does not work in HTML and is therefore not used in <a>polyglot markup</a>. + </p> + <pre class="example"> +<style type="text/css"> +@namespace xml "http://www.w3.org/XML/1998/namespace"; +*[xml|lang]{background:lime;} +</style> + </pre> + </section> + <!-- End section: Attributes with Special Considerations --> </section> @@ -745,7 +779,7 @@ Because of the difference in parsing, if you send the parser content that does not follow the rules for <a>polyglot markup</a> the results will differ for a DOM create with an XML parser and one created with an HTML parser. </p> -<section id="ambiguous-strings"> +<section id="ambiguous-strings" class="section"> <h3>Ambiguous Strings</h3> <p> Except for noted exceptions (such as <code>xml:lang="foo"</code>),
Received on Wednesday, 24 April 2013 02:12:27 UTC