eliot: Edited the example in Section 7, Attributes, to include escaped characters for less-than and greater-than characters.

eliot: Edited the example in Section 7, Attributes, to include escaped
characters for less-than and greater-than characters.

http://dev.w3.org/cvsweb/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html?r1=1.61&r2=1.62&f=h

===================================================================
RCS file: /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- html-xhtml-authoring-guide.html 3 Mar 2011 21:24:05 -0000 1.61
+++ html-xhtml-authoring-guide.html 3 Mar 2011 22:30:53 -0000 1.62
@@ -680,7 +680,7 @@
  This is because of attribute-value normalization in XML [<cite><a href="#bib-XML10" rel="biblioentry" class="bibref">XML10</a></cite>]. 
  The following example uses numeric character references (escaped characters) for the line feed and tab within a <code>srcdoc</code> attribute.
 </p>
-<pre class="example">&lt;iframe srcdoc="&lt;p&gt;Hello &amp;#x0A; &amp;#x09; world!&lt;/p&gt;" src="demo_iframe_srcdoc.htm"&gt;&lt;/iframe&gt;</pre>
+<pre class="example">&lt;iframe srcdoc="&amp;lt;p&amp;gt;Hello &amp;#x0A; &amp;#x09; world!&amp;lt;/p&amp;gt;" src="demo_iframe_srcdoc.htm"&amp;gt;&lt;/iframe&gt;</pre>
 <p class="note">
  Because of attribute-value normalization in XML [<cite><a href="#bib-XML10" rel="biblioentry" class="bibref">XML10</a></cite>], <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a>
  does not use newline characters within an attribute.

Received on Thursday, 3 March 2011 22:32:12 UTC