HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
552710197Mention xml:space since people seem unable to read the XML spec.2010-09-28 17:44
@@ -9344,20 +9344,33 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> { };</pre>
   namespace, not the "<code>http://www.w3.org/2000/xmlns/</code>"
   namespace like namespace declaration attributes in XML do.</p>
 
   <p class="note">In XML, an <code title="">xmlns</code> attribute is
   part of the namespace declaration mechanism, and an element cannot
   actually have an <code title="">xmlns</code> attribute in no
   namespace specified.</p>
 
   <hr>
 
+  <p>The XML specification also allows the use of the <code
+  title="attr-xml-space">xml:space</code> attribute in the <span>XML
+  namespace</span> on any element in an <span title="XML
+  documents">XML document</span>. This attribute has no effect on
+  <span>HTML elements</span>, as the default behavior in HTML is to
+  preserve whitespace. <a href="#refsXML">[XML]</a></p>
+
+  <p class="note">There is no way to serialize the <code
+  title="attr-xml-space">xml:space</code> attribute on <span>HTML
+  elements</span> in the <code>text/html</code> syntax.</p>
+
+  <hr>
+
   <p>To enable assistive technology products to expose a more
   fine-grained interface than is otherwise possible with HTML elements
   and attributes, a set of <span>annotations for assistive technology
   products</span> can be specified (the ARIA <code
   title="attr-aria-role">role</code> and <code
   title="attr-aria-*">aria-*</code> attributes).</p>
 
 
   <h5>The <dfn title="attr-id"><code>id</code></dfn> attribute</h5>
 

|