Skip to content
Permalink
Browse files

[] (0) Make <object> a form-associated element.

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 f3fe978487f6a4c501e8210a3775f242ef990b63
Showing with 70 additions and 6 deletions.
  1. +34 −3 index
  2. +36 −3 source
37 index

<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>
<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>
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>;
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>

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>

"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>

</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

</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>
39 source
<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>
<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>
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>;
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>

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>

"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>

</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

</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>

0 comments on commit f3fe978

Please sign in to comment.
You can’t perform that action at this time.