- From: CVS User egraff <cvsmail@w3.org>
- Date: Tue, 09 Apr 2013 00:47:20 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html-xhtml-author-guide In directory roscoe:/tmp/cvs-serv30710 Modified Files: html-xhtml-authoring-guide.html Log Message: Changes to Attributes based on bug 16504. -Remove ban on newline in @title -Added mention of attributes that render visually being afffected by white space. -Add disambiguator about "directly typed" newline characters --- /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html 2013/04/08 20:07:53 1.94 +++ /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html 2013/04/09 00:47:20 1.95 @@ -10,7 +10,7 @@ var respecConfig = { specStatus: "ED", shortName: "html-polyglot", - publishDate: "2013-04-7", + publishDate: "2013-04-8", previousPublishDate: "2010-10-19", previousMaturity: "WD", edDraftURI: "http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html", @@ -602,7 +602,7 @@ <a title="polyglot markup">Polyglot markup</a> surrounds attribute values with either single quotation marks or with double quotation marks. </p> <p> - <a title="polyglot markup">Polyglot markup</a> does not use newline characters within an attribute. + <a title="polyglot markup">Polyglot markup</a> does not use directly typed newline characters within an attribute. </p> <p> Within an attribute's value, <a>polyglot markup</a> represents tabs, line feeds, and carriage returns @@ -615,13 +615,20 @@ <pre class="example highlight"> <iframe srcdoc="&lt;p>Hello &#x0A; &#x09; world!&lt;/p>" src="demo_iframe_srcdoc.htm"></iframe> </pre> -<p class="note"> +<div class="note"> +<p> Because of attribute-value normalization in XML [[!XML10]], <a>polyglot markup</a> does not use newline characters within an attribute. Practically speaking, for source code with newlines within attributes, DOMs generated via XML and HTML will be different; - however, whitespace differences have no behavioral impact on the page unless explicitly examined by JavaScript, rendering the differences of small consequence. - Note that newlines are overtly not allowed in the <code>title</code> attribute or in any attribute containing a URI. + however, whitespace differences have no behavioral impact on the page unless: </p> - + <ul> + <li>explicitly examined by JavaScript, rendering the differences of small consequence.</li> + <li>used in attributes whose content is rendered visually, such as the content of <code>@alt</code>.</li> + </ul> +<p> + Note that directly typed newline characters are overtly not allowed in any attribute containing a URI. +</p> +</div> <p> See also <a href="#attribute-values">Attribute Values</a>. </p>
Received on Tuesday, 9 April 2013 00:47:22 UTC