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...
1 parent ebc3df9 commit 2e21079e8b5bd35b8d307ba571ffd307424b485b @Hixie Hixie committed Nov 20, 2008
Showing with 41 additions and 6 deletions.
  1. +20 −3 index
  2. +21 −3 source
View
23 index
@@ -15911,7 +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>
+ <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>
@@ -16241,6 +16241,10 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
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>
@@ -22936,7 +22940,7 @@ function AddCloud(data, x, y) { ... }</pre>
<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>
@@ -28280,11 +28284,16 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
<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>
@@ -28372,6 +28381,14 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
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>
View
24 source
@@ -17015,7 +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>
+ <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>
@@ -17381,6 +17381,10 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
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>
@@ -25531,7 +25535,7 @@ function AddCloud(data, x, y) { ... }</pre>
<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>
@@ -31885,6 +31889,10 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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>
@@ -31893,7 +31901,8 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
<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>
@@ -32014,6 +32023,15 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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.