hixie: Add a note about how namespaces aren't supported. (whatwg r3956)

hixie: Add a note about how namespaces aren't supported. (whatwg r3956)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3117&r2=1.3118&f=h
http://html5.org/tools/web-apps-tracker?from=3955&to=3956

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3117
retrieving revision 1.3118
diff -u -d -r1.3117 -r1.3118
--- Overview.html 22 Sep 2009 03:52:02 -0000 1.3117
+++ Overview.html 22 Sep 2009 09:02:39 -0000 1.3118
@@ -55152,7 +55152,29 @@
   marked as self-closing can have <a href="#syntax-text" title="syntax-text">text</a>, <a href="#syntax-charref" title="syntax-charref">character references</a>, <a href="#syntax-cdata" title="syntax-cdata">CDATA sections</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>&lt;</code>) or
   an <a href="#syntax-ambiguous-ampersand" title="syntax-ambiguous-ampersand">ambiguous
-  ampersand</a>.<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
+  ampersand</a>.<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>&lt;p&gt;
+ &lt;svg&gt;
+  &lt;metadata&gt;
+   &lt;!-- this is invalid --&gt;
+   &lt;cdr:license xmlns:cdr="http://www.example.com/cdr/metadata" name="MIT"/&gt;
+  &lt;/metadata&gt;
+ &lt;/svg&gt;
+&lt;/p&gt;</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>&lt;</code>) or
   an <a href="#syntax-ambiguous-ampersand" title="syntax-ambiguous-ampersand">ambiguous
   ampersand</a>. Some <a href="#normal-elements">normal elements</a> also have <a href="#element-restrictions">yet more restrictions</a> on what

Received on Tuesday, 22 September 2009 09:03:41 UTC