Skip to content
Permalink
Browse files

[giow] (2) Define how <object> fits into form submission.

git-svn-id: http://svn.whatwg.org/webapps@2423 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Nov 20, 2008
1 parent ebc3df9 commit 2e21079e8b5bd35b8d307ba571ffd307424b485b
Showing with 41 additions and 6 deletions.
  1. +20 −3 index
  2. +21 −3 source
23 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>
<dd><a href=#category-listed title=category-listed>Listed</a>, <a href=#category-submit title=category-submit>submittable</a>, <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>
explicitly associate the <code><a href=#the-object-element>object</a></code> element with its
<a href=#form-owner>form owner</a>.</p>

<p><strong>Constraint validation:</strong> <code><a href=#the-object-element>object</a></code>
elements are always <a href=#barred-from-constraint-validation>barred from constraint
validation</a>.</p>

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

<dl><dt><dfn id=category-submit title=category-submit>Submittable elements</dfn></dt>

<dd>Denotes elements that can be used for <a href=#constructing-form-data-set>constructing the form data
set</a> when a <code><a href=#the-form-element>form</a></code> element is <a href=#concept-form-submit title=concept-form-submit>submit</a>.</dd>
set</a> when a <code><a href=#the-form-element>form</a></code> element is <a href=#concept-form-submit title=concept-form-submit>submitted</a>.</dd>

<dt><dfn id=category-reset title=category-reset>Resettable elements</dfn></dt>

<code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#file-upload-state title=attr-input-type-file>File Upload</a> state but
the control does not have any files selected.</li>

<li>The <var title="">field</var> element is an
<code><a href=#the-object-element>object</a></code> element that is not using a
<a href=#plugin>plugin</a>.</li>

</ul><p>Otherwise, process <var title="">field</var> as follows:</p>

</li>

<li><p>Let <var title="">type</var> be the value of the <code title="">type</code> DOM attribute of <var title="">field</var>.</li>
<li><p>Let <var title="">type</var> be the value of the <code title="">type</code> DOM attribute of <var title="">field</var>.</li> <!-- if the field is an <object>
element, this will get ignored. -->

<li>

body) as the value, and <var title="">type</var> as the
type.</li>

<li><p>Otherwise, if the <var title="">field</var> element is an
<code><a href=#the-object-element>object</a></code> element: try to obtain a form submission
value from the <a href=#plugin>plugin</a><!-- using NPAPI's
NPP_GetValue() entry point with the NPPVformValue variable -->,
and if that is successful, append an entry in the <var title="">form data set</var> with <var title="">name</var> as the
name, the returned form submission value as the value, and the
string "<code title="">object</code>" as the type.</li>

<li><p>Otherwise, append an entry in the <var title="">form data
set</var> with <var title="">name</var> as the name, the <a href=#concept-fe-value title=concept-fe-value>value</a> of the <var title="">field</var> element as the value, and <var title="">type</var> as the type.</li>

24 source
<dl class="element">
<dt>Categories</dt>
<dd><span>Embedded content</span>.</dd>
<dd><span>Form-associated element</span>.</dd>
<dd><span title="category-listed">Listed</span>, <span title="category-submit">submittable</span>, <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>
explicitly associate the <code>object</code> element with its
<span>form owner</span>.</p>

<p><strong>Constraint validation:</strong> <code>object</code>
elements are always <span>barred from constraint
validation</span>.</p>

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

<dd>Denotes elements that can be used for <a
href="#constructing-form-data-set">constructing the form data
set</a> when a <code>form</code> element is <span
title="concept-form-submit">submit</span>.</dd>
title="concept-form-submit">submitted</span>.</dd>

<dt><dfn title="category-reset">Resettable elements</dfn></dt>

title="attr-input-type-file">File Upload</span> state but
the control does not have any files selected.</li>

<li>The <var title="">field</var> element is an
<code>object</code> element that is not using a
<span>plugin</span>.</li>

</ul>

<p>Otherwise, process <var title="">field</var> as follows:</p>

<li><p>Let <var title="">type</var> be the value of the <code
title="">type</code> DOM attribute of <var
title="">field</var>.</p></li>
title="">field</var>.</p></li> <!-- if the field is an <object>
element, this will get ignored. -->

<li>

body) as the value, and <var title="">type</var> as the
type.</p></li>

<li><p>Otherwise, if the <var title="">field</var> element is an
<code>object</code> element: try to obtain a form submission
value from the <span>plugin</span><!-- using NPAPI's
NPP_GetValue() entry point with the NPPVformValue variable -->,
and if that is successful, append an entry in the <var
title="">form data set</var> with <var title="">name</var> as the
name, the returned form submission value as the value, and the
string "<code title="">object</code>" as the type.</p></li>

<li><p>Otherwise, append an entry in the <var title="">form data
set</var> with <var title="">name</var> as the name, the <span
title="concept-fe-value">value</span> of the <var

0 comments on commit 2e21079

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