[html5] r6115 - [giow] (2) Change how document[name] works to be compatible with both IE (which [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri May 6 16:23:54 PDT 2011


Author: ianh
Date: 2011-05-06 16:23:53 -0700 (Fri, 06 May 2011)
New Revision: 6115

Modified:
   complete.html
   index
   source
Log:
[giow] (2) 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>).
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12091

Modified: complete.html
===================================================================
--- complete.html	2011-05-06 22:49:10 UTC (rev 6114)
+++ complete.html	2011-05-06 23:23:53 UTC (rev 6115)
@@ -9467,18 +9467,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
@@ -9532,20 +9535,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>
 

Modified: index
===================================================================
--- index	2011-05-06 22:49:10 UTC (rev 6114)
+++ index	2011-05-06 23:23:53 UTC (rev 6115)
@@ -9492,18 +9492,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
@@ -9557,20 +9560,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>
 

Modified: source
===================================================================
--- source	2011-05-06 22:49:10 UTC (rev 6114)
+++ source	2011-05-06 23:23:53 UTC (rev 6115)
@@ -9694,19 +9694,25 @@
   named properties">supports named properties</span>. The
   <span>supported property names</span> at any moment consist of the
   values of the <code title="attr-name">name</code> content attributes
-  of all the <code>applet</code>, <code>embed</code>,
-  <code>form</code>, <code>iframe</code>, <code>img</code>, and
-  <span>fallback-free</span> <code>object</code> elements in the
-  <code>Document</code> that have <code title="attr-name">name</code>
-  content attributes, and the values of the <code
-  title="attr-id">id</code> content attributes of all the
-  <code>applet</code> and <span>fallback-free</span>
-  <code>object</code> elements in the <code>Document</code> that have
-  <code title="attr-id">id</code> content attributes, and the values
-  of the <code title="attr-id">id</code> content attributes of all the
-  <code>img</code> elements in the <code>Document</code> that have
-  both <code title="attr-name">name</code> content attributes and
-  <code title="attr-id">id</code> content attributes.</p>
+  of all the
+    <code>applet</code>,
+    <span>exposed</span> <code>embed</code>,
+    <code>form</code>,
+    <code>iframe</code>,
+    <code>img</code>, and
+    <span>exposed</span> <code>object</code>
+  elements in the <code>Document</code> that have <code
+  title="attr-name">name</code> content attributes, and the values of
+  the <code title="attr-id">id</code> content attributes of all the
+    <code>applet</code> and
+    <span>exposed</span> <code>object</code>
+  elements in the <code>Document</code> that have <code
+  title="attr-id">id</code> content attributes, and the values of the
+  <code title="attr-id">id</code> content attributes of all the
+    <code>img</code>
+  elements in the <code>Document</code> that have both <code
+  title="attr-name">name</code> content attributes and <code
+  title="attr-id">id</code> content attributes.</p>
 
   <p>When <dfn title="dom-document-namedItem">the
   <code>HTMLDocument</code> object is indexed for property
@@ -9768,17 +9774,16 @@
 
   <ul>
 
-   <li><code>applet</code>, <code>embed</code>, <code>form</code>,
-   <code>iframe</code>, <code>img</code>, or
-   <span>fallback-free</span> <code>object</code> elements that have a
-   <code title="attr-name">name</code> content attribute whose value
-   is <var title="">name</var>, or</li>
-
-   <li><code>applet</code> or <span>fallback-free</span>
-   <code>object</code> elements that have an <code
-   title="attr-id">id</code> content attribute whose value is <var
+   <li><code>applet</code>, <span>exposed</span> <code>embed</code>,
+   <code>form</code>, <code>iframe</code>, <code>img</code>, or
+   <span>exposed</span> <code>object</code> elements that have a <code
+   title="attr-name">name</code> content attribute whose value is <var
    title="">name</var>, or</li>
 
+   <li><code>applet</code> or <span>exposed</span> <code>object</code>
+   elements that have an <code title="attr-id">id</code> content
+   attribute whose value is <var title="">name</var>, or</li>
+
    <li><code>img</code> elements that have an <code
    title="attr-id">id</code> content attribute whose value is <var
    title="">name</var>, and that have a <code
@@ -9786,9 +9791,11 @@
 
   </ul>
 
-  <p>An <code>object</code> element is said to be
-  <dfn>fallback-free</dfn> if it has no <code>object</code> or
-  <code>embed</code> descendants.</p>
+  <p>An <code>embed</code> or <code>object</code> element is said to
+  be <dfn>exposed</dfn> if it has no <span>exposed</span>
+  <code>object</code> ancestor, and, for <code>object</code> elements,
+  is additionally either not showing its <span>fallback content</span>
+  or has no <code>object</code> or <code>embed</code> descendants.</p>
 
   </div>
 




More information about the Commit-Watchers mailing list