W3C home > Mailing lists > Public > public-html-diffs@w3.org > October 2011

hixie: Try to clarify that global HTML attributes aren't global across other namespaces without having to litter '...and is an HTML element' all over the spec. (whatwg r6754)

From: poot <cvsmail@w3.org>
Date: Tue, 25 Oct 2011 15:23:29 -0400
To: public-html-diffs@w3.org
Message-Id: <E1RImav-0008I7-Ct@jay.w3.org>
hixie: Try to clarify that global HTML attributes aren't global across
other namespaces without having to litter '...and is an HTML element'
all over the spec. (whatwg r6754)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5413&r2=1.5414&f=h
http://html5.org/tools/web-apps-tracker?from=6753&to=6754

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5413
retrieving revision 1.5414
diff -u -d -r1.5413 -r1.5414
--- Overview.html	25 Oct 2011 18:44:22 -0000	1.5413
+++ Overview.html	25 Oct 2011 19:23:06 -0000	1.5414
@@ -8579,7 +8579,32 @@
    <li><code title="attr-style"><a href="#the-style-attribute">style</a></code></li>
    <li><code title="attr-tabindex"><a href="#attr-tabindex">tabindex</a></code></li>
    <li><code title="attr-title"><a href="#the-title-attribute">title</a></code></li>
-  </ul><hr><p>The following <a href="#event-handler-content-attributes">event handler content attributes</a> may
+  </ul><div class="impl">
+
+  <p>These attributes are only defined by this specification as
+  attributes for <a href="#html-elements">HTML elements</a>. When this specification
+  refers to elements having these attributes, elements from namespaces
+  that are not defined as having these attributes must not be
+  considered as being elements with these attributes.</p>
+
+  <div class="example">
+
+   <p>For example, in the following XML fragment, the "<code title="">bogus</code>" element does not have a <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute as defined in this
+   specification, despite having an attribute with the literal name
+   "<code title="">dir</code>". Thus, <a href="#the-directionality">the directionality</a>
+   of the inner-most <code><a href="#the-span-element">span</a></code> element is '<a href="#concept-rtl" title="concept-rtl">rtl</a>', inherited from the
+   <code><a href="#the-div-element">div</a></code> element indirectly through the "<code title="">bogus</code>" element.</p>
+
+   <pre class="bad">&lt;div xmlns="http://www.w3.org/1999/html" dir="rtl"&gt;
+ &lt;bogus xmlns="http://example.net/ns" dir="ltr"&gt;
+  &lt;span xmlns="http://www.w3.org/1999/html"&gt;
+  &lt;/span&gt;
+ &lt;/bogus&gt;
+&lt;/div&gt;</pre>
+
+  </div>
+
+  </div><hr><p>The following <a href="#event-handler-content-attributes">event handler content attributes</a> may
   be specified on any <a href="#html-elements" title="HTML elements">HTML
   element</a>:<ul class="brief"><li><code title="handler-onabort"><a href="#handler-onabort">onabort</a></code></li>
    <li><code title="handler-onblur"><a href="#handler-onblur">onblur</a></code>*</li>
Received on Tuesday, 25 October 2011 19:23:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 25 October 2011 19:23:37 GMT