Skip to content

Commit

Permalink
[giow] (2) Oops, missed a case -- <object> containing stuff musn't co…
Browse files Browse the repository at this point in the history
…unt for document.foo access. (credit: sp)

git-svn-id: http://svn.whatwg.org/webapps@2643 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 13, 2009
1 parent d35357b commit f77021d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 23 deletions.
30 changes: 18 additions & 12 deletions index
Expand Up @@ -6324,12 +6324,12 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
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>Document</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>Document</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 <code><a href=#the-object-element>object</a></code> elements in the
<code>Document</code> that have <code title=attr-id><a href=#the-id-attribute>id</a></code>
content attributes.</p>
<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
Expand All @@ -6350,15 +6350,21 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
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 <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>
<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>

<li><code><a href=#the-applet-element>applet</a></code> or <code><a href=#the-object-element>object</a></code> elements that have a
<code title=attr-id><a href=#the-id-attribute>id</a></code> content attribute whose value is
<var title="">name</var>.</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 a <code title=attr-id><a href=#the-id-attribute>id</a></code> content attribute whose value is <var title="">name</var>.</li>

</ul><p class=note>The <code title=dom-document-dir><a href=#dom-document-dir>dir</a></code>
</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 element descendants and no
<a href=#text-node>text node</a> descendants that are not <a href=#inter-element-whitespace>inter-element
whitespace</a>.</p>


<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
along with the <code title=attr-dir><a href=#the-dir-attribute>dir</a></code> content
attribute.</p>
Expand Down
30 changes: 19 additions & 11 deletions source
Expand Up @@ -6362,12 +6362,13 @@ interface <dfn>HTMLDocument</dfn> {
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-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 <code>object</code> elements in the
<code>Document</code> that have <code title="attr-id">id</code>
content attributes.</p>
<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
Expand All @@ -6391,16 +6392,23 @@ interface <dfn>HTMLDocument</dfn> {
<ul>

<li><code>applet</code>, <code>embed</code>, <code>form</code>,
<code>iframe</code>, <code>img</code>, or <code>object</code>
elements that have a <code title="attr-name">name</code> content
attribute whose value is <var title="">name</var>, or</li>
<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 <code>object</code> elements that have a
<code title="attr-id">id</code> content attribute whose value is
<var title="">name</var>.</li>
<li><code>applet</code> or <span>fallback-free</span>
<code>object</code> elements that have a <code
title="attr-id">id</code> content attribute whose value is <var
title="">name</var>.</li>

</ul>

<p>An <code>object</code> element is said to be
<dfn>fallback-free</dfn> if it has no element descendants and no
<span>text node</span> descendants that are not <span>inter-element
whitespace</span>.</p>


<p class="note">The <code title="dom-document-dir">dir</code>
attribute on the <code>HTMLDocument</code> interface is defined
Expand Down

0 comments on commit f77021d

Please sign in to comment.