Skip to content

Commit

Permalink
[] (0) Make <object> a form-associated element.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2421 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 20, 2008
1 parent 1dec789 commit f3fe978
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 6 deletions.
37 changes: 34 additions & 3 deletions index
Expand Up @@ -15911,6 +15911,7 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>

<dl class=element><dt>Categories</dt>
<dd><a href=#embedded-content-1>Embedded content</a>.</dd>
<dd><a href=#form-associated-element>Form-associated element</a>.</dd>
<dt>Contexts in which this element may be used:</dt>
<dd>Where <a href=#embedded-content-1>embedded content</a> is expected.</dd>
<dt>Content model:</dt>
Expand All @@ -15920,6 +15921,7 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<dd><code title=attr-object-type><a href=#attr-object-type>type</a></code></dd>
<dd><code title=attr-object-name><a href=#attr-object-name>name</a></code></dd>
<dd><code title=attr-hyperlink-usemap><a href=#attr-hyperlink-usemap>usemap</a></code></dd>
<dd><code title=attr-fae-form><a href=#attr-fae-form>form</a></code></dd>
<dd><code title=attr-dim-width><a href=#attr-dim-width>width</a></code></dd>
<dd><code title=attr-dim-height><a href=#attr-dim-height>height</a></code></dd>
<dt>DOM interface:</dt>
Expand All @@ -15929,6 +15931,7 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
attribute DOMString <a href=#dom-object-type title=dom-object-type>type</a>;
attribute DOMString <a href=#dom-object-name title=dom-object-name>name</a>;
attribute DOMString <a href=#dom-object-usemap title=dom-object-useMap>useMap</a>;
readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <a href=#dom-fae-form title=dom-fae-form>form</a>;
attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;
attribute DOMString <a href=#dom-dim-height title=dom-dim-height>height</a>;<!--
readonly attribute Document <span title="dom-object-contentDocument">contentDocument</span>;
Expand Down Expand Up @@ -16234,6 +16237,10 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
map</a>. The attribute must be ignored if the <code><a href=#the-object-element>object</a></code>
element doesn't represent an image.</p>

<p>The <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is used to
explicitly associate the <code><a href=#the-object-element>object</a></code> element with its
<a href=#form-owner>form owner</a>.</p>

<p>The <code><a href=#the-object-element>object</a></code> element supports <a href=#dimension-attributes>dimension
attributes</a>.</p>

Expand Down Expand Up @@ -22950,6 +22957,10 @@ function AddCloud(data, x, y) { ... }</pre>
elements</a> can be, depending on their attributes, <dfn id=concept-button title=concept-button>buttons</dfn>. The prose below defines when
an element is a button. Some buttons are specifically <dfn id=concept-submit-button title=concept-submit-button>submit buttons</dfn>.</p>

<p class=note>For historical reasons, the <code><a href=#the-object-element>object</a></code>
element, which is not otherwise considered to be related to forms,
is also a <a href=#form-associated-element>form-associated element</a>.</p>


<h4 id=the-form-element><span class=secno>4.10.1 </span>The <dfn><code>form</code></dfn> element</h4>

Expand Down Expand Up @@ -47954,8 +47965,8 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
"p" had been seen.</p>

<p><a href=#insert-an-html-element>Insert an HTML element</a> for the token, and set the
<code title=form><a href=#the-form-element>form</a></code> element pointer to point to the
element created.</p>
<a href=#form-element-pointer><code title=form>form</code> element pointer</a> to
point to the element created.</p>

</dd>

Expand Down Expand Up @@ -48477,7 +48488,7 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
</dd>

<dt>A start tag token whose tag name is one of: "applet",
"marquee", "object"</dt>
"marquee"</dt>
<dd>

<p><a href=#reconstruct-the-active-formatting-elements>Reconstruct the active formatting elements</a>, if
Expand All @@ -48490,6 +48501,26 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {

</dd>

<!-- as for applet and marquee, but interacts with the form element pointer -->
<dt>A start tag token whose tag name is "object"</dt>
<dd>

<p><a href=#reconstruct-the-active-formatting-elements>Reconstruct the active formatting elements</a>, if
any.</p>

<p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>

<p>If the <a href=#form-element-pointer><code title="">form</code> element pointer</a>
is not null and the newly created element doesn't have a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute, then <a href=#concept-form-association title=concept-form-association>associate</a> the newly
created <code><a href=#the-object-element>object</a></code> element with the <code><a href=#the-form-element>form</a></code>
element pointed to by the <a href=#form-element-pointer><code title="">form</code> element
pointer</a>.</p>

<p>Insert a marker at the end of the <a href=#list-of-active-formatting-elements>list of active
formatting elements</a>.</p>

</dd>

<dt>An end tag token whose tag name is one of: "applet", "button",
"marquee", "object"</dt>
<dd>
Expand Down
39 changes: 36 additions & 3 deletions source
Expand Up @@ -17015,6 +17015,7 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<dl class="element">
<dt>Categories</dt>
<dd><span>Embedded content</span>.</dd>
<dd><span>Form-associated element</span>.</dd>
<dt>Contexts in which this element may be used:</dt>
<dd>Where <span>embedded content</span> is expected.</dd>
<dt>Content model:</dt>
Expand All @@ -17024,6 +17025,7 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<dd><code title="attr-object-type">type</code></dd>
<dd><code title="attr-object-name">name</code></dd>
<dd><code title="attr-hyperlink-usemap">usemap</code></dd>
<dd><code title="attr-fae-form">form</code></dd>
<dd><code title="attr-dim-width">width</code></dd>
<dd><code title="attr-dim-height">height</code></dd>
<dt>DOM interface:</dt>
Expand All @@ -17033,6 +17035,7 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
attribute DOMString <span title="dom-object-type">type</span>;
attribute DOMString <span title="dom-object-name">name</span>;
attribute DOMString <span title="dom-object-useMap">useMap</span>;
readonly attribute <span>HTMLFormElement</span> <span title="dom-fae-form">form</span>;
attribute DOMString <span title="dom-dim-width">width</span>;
attribute DOMString <span title="dom-dim-height">height</span>;<!--
readonly attribute Document <span title="dom-object-contentDocument">contentDocument</span>;
Expand Down Expand Up @@ -17374,6 +17377,10 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
map</span>. The attribute must be ignored if the <code>object</code>
element doesn't represent an image.</p>

<p>The <code title="attr-fae-form">form</code> attribute is used to
explicitly associate the <code>object</code> element with its
<span>form owner</span>.</p>

<p>The <code>object</code> element supports <span>dimension
attributes</span>.</p>

Expand Down Expand Up @@ -25551,6 +25558,10 @@ function AddCloud(data, x, y) { ... }</pre>
an element is a button. Some buttons are specifically <dfn
title="concept-submit-button">submit buttons</dfn>.</p>

<p class="note">For historical reasons, the <code>object</code>
element, which is not otherwise considered to be related to forms,
is also a <span>form-associated element</span>.</p>


<h4>The <dfn><code>form</code></dfn> element</h4>

Expand Down Expand Up @@ -54661,8 +54672,8 @@ interface <dfn>MessageChannel</dfn> {
"p" had been seen.</p>

<p><span>Insert an HTML element</span> for the token, and set the
<code title="form">form</code> element pointer to point to the
element created.</p>
<span><code title="form">form</code> element pointer</span> to
point to the element created.</p>

</dd>

Expand Down Expand Up @@ -55240,7 +55251,7 @@ interface <dfn>MessageChannel</dfn> {
</dd>

<dt>A start tag token whose tag name is one of: "applet",
"marquee", "object"</dt>
"marquee"</dt>
<dd>

<p><span>Reconstruct the active formatting elements</span>, if
Expand All @@ -55253,6 +55264,28 @@ interface <dfn>MessageChannel</dfn> {

</dd>

<!-- as for applet and marquee, but interacts with the form element pointer -->
<dt>A start tag token whose tag name is "object"</dt>
<dd>

<p><span>Reconstruct the active formatting elements</span>, if
any.</p>

<p><span>Insert an HTML element</span> for the token.</p>

<p>If the <span><code title="">form</code> element pointer</span>
is not null and the newly created element doesn't have a <code
title="attr-fae-form">form</code> attribute, then <span
title="concept-form-association">associate</span> the newly
created <code>object</code> element with the <code>form</code>
element pointed to by the <span><code title="">form</code> element
pointer</span>.</p>

<p>Insert a marker at the end of the <span>list of active
formatting elements</span>.</p>

</dd>

<dt>An end tag token whose tag name is one of: "applet", "button",
"marquee", "object"</dt>
<dd>
Expand Down

0 comments on commit f3fe978

Please sign in to comment.