hixie: Change how document[name] works to be compatible with both IE (which typically are targetted with <object>) and other UAs (which typically are targetted with <embed>). (whatwg r6115)

hixie: Change how document[name] works to be compatible with both IE
(which typically are targetted with <object>) and other UAs (which
typically are targetted with <embed>). (whatwg r6115)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4916&r2=1.4917&f=h
http://html5.org/tools/web-apps-tracker?from=6114&to=6115

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4916
retrieving revision 1.4917
diff -u -d -r1.4916 -r1.4917
--- Overview.html 6 May 2011 22:49:15 -0000 1.4916
+++ Overview.html 6 May 2011 23:23:58 -0000 1.4917
@@ -8026,18 +8026,21 @@
   named properties">supports named properties</span>. The
   <a href="#supported-property-names">supported property names</a> at any moment consist of the
   values of the <code title="attr-name">name</code> content attributes
-  of all the <code><a href="#the-applet-element">applet</a></code>, <code><a href="#the-embed-element">embed</a></code>,
-  <code><a href="#the-form-element">form</a></code>, <code><a href="#the-iframe-element">iframe</a></code>, <code><a href="#the-img-element">img</a></code>, and
-  <a href="#fallback-free">fallback-free</a> <code><a href="#the-object-element">object</a></code> elements in the
-  <code><a href="#document">Document</a></code> that have <code title="attr-name">name</code>
-  content attributes, and the values of the <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attributes of all the
-  <code><a href="#the-applet-element">applet</a></code> and <a href="#fallback-free">fallback-free</a>
-  <code><a href="#the-object-element">object</a></code> elements in the <code><a href="#document">Document</a></code> that have
-  <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attributes, and the values
-  of the <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attributes of all the
-  <code><a href="#the-img-element">img</a></code> elements in the <code><a href="#document">Document</a></code> that have
-  both <code title="attr-name">name</code> content attributes and
-  <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attributes.</p>
+  of all the
+    <code><a href="#the-applet-element">applet</a></code>,
+    <a href="#exposed">exposed</a> <code><a href="#the-embed-element">embed</a></code>,
+    <code><a href="#the-form-element">form</a></code>,
+    <code><a href="#the-iframe-element">iframe</a></code>,
+    <code><a href="#the-img-element">img</a></code>, and
+    <a href="#exposed">exposed</a> <code><a href="#the-object-element">object</a></code>
+  elements in the <code><a href="#document">Document</a></code> that have <code title="attr-name">name</code> content attributes, and the values of
+  the <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attributes of all the
+    <code><a href="#the-applet-element">applet</a></code> and
+    <a href="#exposed">exposed</a> <code><a href="#the-object-element">object</a></code>
+  elements in the <code><a href="#document">Document</a></code> that have <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attributes, and the values of the
+  <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attributes of all the
+    <code><a href="#the-img-element">img</a></code>
+  elements in the <code><a href="#document">Document</a></code> that have both <code title="attr-name">name</code> content attributes and <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attributes.</p>
 
   <p>When <dfn id="dom-document-nameditem" title="dom-document-namedItem">the
   <code>HTMLDocument</code> object is indexed for property
@@ -8083,20 +8086,21 @@
   with the name <var title="">name</var>, for the purposes of the
   above algorithm, are those that are either:</p>
 
-  <ul><li><code><a href="#the-applet-element">applet</a></code>, <code><a href="#the-embed-element">embed</a></code>, <code><a href="#the-form-element">form</a></code>,
-   <code><a href="#the-iframe-element">iframe</a></code>, <code><a href="#the-img-element">img</a></code>, or
-   <a href="#fallback-free">fallback-free</a> <code><a href="#the-object-element">object</a></code> elements that have a
-   <code title="attr-name">name</code> content attribute whose value
-   is <var title="">name</var>, or</li>
+  <ul><li><code><a href="#the-applet-element">applet</a></code>, <a href="#exposed">exposed</a> <code><a href="#the-embed-element">embed</a></code>,
+   <code><a href="#the-form-element">form</a></code>, <code><a href="#the-iframe-element">iframe</a></code>, <code><a href="#the-img-element">img</a></code>, or
+   <a href="#exposed">exposed</a> <code><a href="#the-object-element">object</a></code> elements that have a <code title="attr-name">name</code> content attribute whose value is <var title="">name</var>, or</li>
 
-   <li><code><a href="#the-applet-element">applet</a></code> or <a href="#fallback-free">fallback-free</a>
-   <code><a href="#the-object-element">object</a></code> elements that have an <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attribute whose value is <var title="">name</var>, or</li>
+   <li><code><a href="#the-applet-element">applet</a></code> or <a href="#exposed">exposed</a> <code><a href="#the-object-element">object</a></code>
+   elements that have an <code title="attr-id"><a href="#the-id-attribute">id</a></code> content
+   attribute whose value is <var title="">name</var>, or</li>
 
    <li><code><a href="#the-img-element">img</a></code> elements that have an <code title="attr-id"><a href="#the-id-attribute">id</a></code> content attribute whose value is <var title="">name</var>, and that have a <code title="attr-name">name</code> content attribute present also.</li>
 
-  </ul><p>An <code><a href="#the-object-element">object</a></code> element is said to be
-  <dfn id="fallback-free">fallback-free</dfn> if it has no <code><a href="#the-object-element">object</a></code> or
-  <code><a href="#the-embed-element">embed</a></code> descendants.</p>
+  </ul><p>An <code><a href="#the-embed-element">embed</a></code> or <code><a href="#the-object-element">object</a></code> element is said to
+  be <dfn id="exposed">exposed</dfn> if it has no <a href="#exposed">exposed</a>
+  <code><a href="#the-object-element">object</a></code> ancestor, and, for <code><a href="#the-object-element">object</a></code> elements,
+  is additionally either not showing its <a href="#fallback-content">fallback content</a>
+  or has no <code><a href="#the-object-element">object</a></code> or <code><a href="#the-embed-element">embed</a></code> descendants.</p>
 
   </div><hr><p class="note">The <code title="dom-document-dir"><a href="#dom-document-dir">dir</a></code>
   attribute on the <code><a href="#htmldocument">HTMLDocument</a></code> interface is defined

Received on Friday, 6 May 2011 23:27:10 UTC