Short URL: http://html5.org/r/6754
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 6754 | 14039 | 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. | 2011-10-25 19:18 |
Index: source
===================================================================
--- source (revision 6753)
+++ source (revision 6754)
@@ -10592,6 +10592,37 @@
<li><code title="attr-title">title</code></li>
</ul>
+ <div class="impl">
+
+ <p>These attributes are only defined by this specification as
+ attributes for <span>HTML elements</span>. 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">dir</code> attribute as defined in this
+ specification, despite having an attribute with the literal name
+ "<code title="">dir</code>". Thus, <span>the directionality</span>
+ of the inner-most <code>span</code> element is '<span
+ title="concept-rtl">rtl</span>', inherited from the
+ <code>div</code> element indirectly through the "<code
+ title="">bogus</code>" element.</p>
+
+ <pre class="bad"><div xmlns="http://www.w3.org/1999/html" dir="rtl">
+ <bogus xmlns="http://example.net/ns" dir="ltr">
+ <span xmlns="http://www.w3.org/1999/html">
+ </span>
+ </bogus>
+</div></pre>
+
+ </div>
+
+ </div>
+
<hr>
<p>The following <span>event handler content attributes</span> may
@@ -65768,7 +65799,27 @@
<!--START w3c-html-->
+ <h4>Microdata and other namespaces</h4>
+ <p>Currently, the <code title="attr-itemscope">itemscope</code>,
+ <code title="attr-itemprop">itemprop</code>, and other microdata
+ attributes are only defined for <span>HTML elements</span>. This
+ means that attributes with the literal names "<code
+ title="">itemscope</code>", "<code title="">itemprop</code>", etc,
+ do not cause microdata processing to occur on elements in other
+ namespaces, such as SVG.</p>
+
+ <div class="example">
+
+ <p>Thus, in the following example there is only one item, not
+ two.</p>
+
+ <pre class="bad"><p itemscope></p> <!-- this is an item (with no properties and no type) -->
+<svg itemscope></svg> <!-- this is not, it's just an <code>svg</code> element with an invalid unknown attribute --></pre>
+
+ </div>
+
+
<h3>Microdata DOM API</h3>
<!--END html--><!--END dev-html--><!--END complete--><!--END epub--><!--MD-->