[html5] r3956 - [e] (0) Add a note about how namespaces aren't supported. Fixing http://www.w3.o [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Sep 22 02:09:34 PDT 2009


Author: ianh
Date: 2009-09-22 02:09:33 -0700 (Tue, 22 Sep 2009)
New Revision: 3956

Modified:
   index
   source
Log:
[e] (0) Add a note about how namespaces aren't supported.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7510

Modified: index
===================================================================
--- index	2009-09-22 03:58:52 UTC (rev 3955)
+++ index	2009-09-22 09:09:33 UTC (rev 3956)
@@ -61296,6 +61296,30 @@
   an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
   ampersand</a>.</p>
 
+  <div class=note>
+
+   <p>The HTML syntax does not support namespace
+   declarations, even in <a href=#foreign-elements>foreign elements</a>.</p>
+
+   <p>For instance, consider the following HTML fragment:</p>
+
+   <pre><p>
+ <svg>
+  <metadata>
+   <!-- this is invalid -->
+   <cdr:license xmlns:cdr="http://www.example.com/cdr/metadata" name="MIT"/>
+  </metadata>
+ </svg>
+</p></pre>
+
+   <p>The innermost element, <code title="">cdr:license</code>, is
+   actually in the SVG namespace, as the "<code title="">xmlns:cdr</code>" attribute has no effect (unlike in
+   XML). In fact, as the comment in the fragment above says, the
+   fragment is actually non-conforming. This is because the SVG
+   specification does not define any elements called "<code title="">cdr:license</code>" in the SVG namespace.</p>
+
+  </div>
+
   <p><a href=#normal-elements>Normal elements</a> can have <a href=#syntax-text title=syntax-text>text</a>, <a href=#syntax-charref title=syntax-charref>character references</a>, other <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
   contain the character U+003C LESS-THAN SIGN (<code><</code>) or
   an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous

Modified: source
===================================================================
--- source	2009-09-22 03:58:52 UTC (rev 3955)
+++ source	2009-09-22 09:09:33 UTC (rev 3956)
@@ -75829,6 +75829,32 @@
   an <span title="syntax-ambiguous-ampersand">ambiguous
   ampersand</span>.</p>
 
+  <div class="note">
+
+   <p>The HTML syntax does not support namespace
+   declarations, even in <span>foreign elements</span>.</p>
+
+   <p>For instance, consider the following HTML fragment:</p>
+
+   <pre><p>
+ <svg>
+  <metadata>
+   <!-- this is invalid -->
+   <cdr:license xmlns:cdr="http://www.example.com/cdr/metadata" name="MIT"/>
+  </metadata>
+ </svg>
+</p></pre>
+
+   <p>The innermost element, <code title="">cdr:license</code>, is
+   actually in the SVG namespace, as the "<code
+   title="">xmlns:cdr</code>" attribute has no effect (unlike in
+   XML). In fact, as the comment in the fragment above says, the
+   fragment is actually non-conforming. This is because the SVG
+   specification does not define any elements called "<code
+   title="">cdr:license</code>" in the SVG namespace.</p>
+
+  </div>
+
   <p><span>Normal elements</span> can have <span
   title="syntax-text">text</span>, <span
   title="syntax-charref">character references</span>, other <span




More information about the Commit-Watchers mailing list