Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) make .action and .formAction handle the empty string more …
…like the content attribute gets processed, for sanity (even though that value is technically not valid anyway)

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11161

git-svn-id: http://svn.whatwg.org/webapps@5785 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 13, 2011
1 parent 7876ea3 commit d725e42
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 28 deletions.
22 changes: 13 additions & 9 deletions complete.html
Expand Up @@ -47620,19 +47620,23 @@ <h5 id=form-submission-0><span class=secno>4.10.19.6 </span>Form submission</h5>

<div class=impl>

<hr><p>The <dfn id=dom-fs-action title=dom-fs-action><code>action</code></dfn> and <dfn id=dom-fs-target title=dom-fs-target><code>target</code></dfn> IDL attributes must
<a href=#reflect>reflect</a> the respective content attributes of the same
name. The <dfn id=dom-fs-method title=dom-fs-method><code>method</code></dfn> and
<dfn id=dom-fs-enctype title=dom-fs-enctype><code>enctype</code></dfn> IDL
attributes must <a href=#reflect>reflect</a> the respective content
attributes of the same name, <a href=#limited-to-only-known-values>limited to only known
values</a>. The <dfn id=dom-fs-encoding title=dom-fs-encoding><code>encoding</code></dfn> IDL attribute
<hr><p>The <dfn id=dom-fs-action title=dom-fs-action><code>action</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name, except that on getting, when the content attribute is
missing or its value is the empty string, <a href="#the-document's-address">the document's
address</a> must be returned instead. The <dfn id=dom-fs-target title=dom-fs-target><code>target</code></dfn> IDL attribute must
<a href=#reflect>reflect</a> the content attribute of the same name. The
<dfn id=dom-fs-method title=dom-fs-method><code>method</code></dfn> and <dfn id=dom-fs-enctype title=dom-fs-enctype><code>enctype</code></dfn> IDL attributes
must <a href=#reflect>reflect</a> the respective content attributes of the
same name, <a href=#limited-to-only-known-values>limited to only known values</a>. The <dfn id=dom-fs-encoding title=dom-fs-encoding><code>encoding</code></dfn> IDL attribute
must <a href=#reflect>reflect</a> the <code title=attr-fs-enctype><a href=#attr-fs-enctype>enctype</a></code> content attribute,
<a href=#limited-to-only-known-values>limited to only known values</a>. The <dfn id=dom-fs-novalidate title=dom-fs-noValidate><code>noValidate</code></dfn> IDL
attribute must reflect the <code title=attr-fs-novalidate><a href=#attr-fs-novalidate>novalidate</a></code> content attribute. The
<dfn id=dom-fs-formaction title=dom-fs-formAction><code>formAction</code></dfn> IDL
attribute must reflect the <code title=attr-fs-formaction><a href=#attr-fs-formaction>formaction</a></code> content attribute. The
<dfn id=dom-fs-formenctype title=dom-fs-formEnctype><code>formEnctype</code></dfn> IDL
attribute must reflect the <code title=attr-fs-formaction><a href=#attr-fs-formaction>formaction</a></code> content attribute,
except that on getting, when the content attribute is missing or its
value is the empty string, <a href="#the-document's-address">the document's address</a> must
be returned instead. The <dfn id=dom-fs-formenctype title=dom-fs-formEnctype><code>formEnctype</code></dfn> IDL
attribute must reflect the <code title=attr-fs-formenctype><a href=#attr-fs-formenctype>formenctype</a></code> content attribute,
<a href=#limited-to-only-known-values>limited to only known values</a>. The <dfn id=dom-fs-formmethod title=dom-fs-formMethod><code>formMethod</code></dfn> IDL
attribute must reflect the <code title=attr-fs-formmethod><a href=#attr-fs-formmethod>formmethod</a></code> content attribute,
Expand Down
22 changes: 13 additions & 9 deletions index
Expand Up @@ -47602,19 +47602,23 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>

<div class=impl>

<hr><p>The <dfn id=dom-fs-action title=dom-fs-action><code>action</code></dfn> and <dfn id=dom-fs-target title=dom-fs-target><code>target</code></dfn> IDL attributes must
<a href=#reflect>reflect</a> the respective content attributes of the same
name. The <dfn id=dom-fs-method title=dom-fs-method><code>method</code></dfn> and
<dfn id=dom-fs-enctype title=dom-fs-enctype><code>enctype</code></dfn> IDL
attributes must <a href=#reflect>reflect</a> the respective content
attributes of the same name, <a href=#limited-to-only-known-values>limited to only known
values</a>. The <dfn id=dom-fs-encoding title=dom-fs-encoding><code>encoding</code></dfn> IDL attribute
<hr><p>The <dfn id=dom-fs-action title=dom-fs-action><code>action</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name, except that on getting, when the content attribute is
missing or its value is the empty string, <a href="#the-document's-address">the document's
address</a> must be returned instead. The <dfn id=dom-fs-target title=dom-fs-target><code>target</code></dfn> IDL attribute must
<a href=#reflect>reflect</a> the content attribute of the same name. The
<dfn id=dom-fs-method title=dom-fs-method><code>method</code></dfn> and <dfn id=dom-fs-enctype title=dom-fs-enctype><code>enctype</code></dfn> IDL attributes
must <a href=#reflect>reflect</a> the respective content attributes of the
same name, <a href=#limited-to-only-known-values>limited to only known values</a>. The <dfn id=dom-fs-encoding title=dom-fs-encoding><code>encoding</code></dfn> IDL attribute
must <a href=#reflect>reflect</a> the <code title=attr-fs-enctype><a href=#attr-fs-enctype>enctype</a></code> content attribute,
<a href=#limited-to-only-known-values>limited to only known values</a>. The <dfn id=dom-fs-novalidate title=dom-fs-noValidate><code>noValidate</code></dfn> IDL
attribute must reflect the <code title=attr-fs-novalidate><a href=#attr-fs-novalidate>novalidate</a></code> content attribute. The
<dfn id=dom-fs-formaction title=dom-fs-formAction><code>formAction</code></dfn> IDL
attribute must reflect the <code title=attr-fs-formaction><a href=#attr-fs-formaction>formaction</a></code> content attribute. The
<dfn id=dom-fs-formenctype title=dom-fs-formEnctype><code>formEnctype</code></dfn> IDL
attribute must reflect the <code title=attr-fs-formaction><a href=#attr-fs-formaction>formaction</a></code> content attribute,
except that on getting, when the content attribute is missing or its
value is the empty string, <a href="#the-document's-address">the document's address</a> must
be returned instead. The <dfn id=dom-fs-formenctype title=dom-fs-formEnctype><code>formEnctype</code></dfn> IDL
attribute must reflect the <code title=attr-fs-formenctype><a href=#attr-fs-formenctype>formenctype</a></code> content attribute,
<a href=#limited-to-only-known-values>limited to only known values</a>. The <dfn id=dom-fs-formmethod title=dom-fs-formMethod><code>formMethod</code></dfn> IDL
attribute must reflect the <code title=attr-fs-formmethod><a href=#attr-fs-formmethod>formmethod</a></code> content attribute,
Expand Down
26 changes: 16 additions & 10 deletions source
Expand Up @@ -53456,14 +53456,17 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>

<hr>

<p>The <dfn title="dom-fs-action"><code>action</code></dfn> and <dfn
title="dom-fs-target"><code>target</code></dfn> IDL attributes must
<span>reflect</span> the respective content attributes of the same
name. The <dfn title="dom-fs-method"><code>method</code></dfn> and
<dfn title="dom-fs-enctype"><code>enctype</code></dfn> IDL
attributes must <span>reflect</span> the respective content
attributes of the same name, <span>limited to only known
values</span>. The <dfn
<p>The <dfn title="dom-fs-action"><code>action</code></dfn> IDL
attribute must <span>reflect</span> the content attribute of the
same name, except that on getting, when the content attribute is
missing or its value is the empty string, <span>the document's
address</span> must be returned instead. The <dfn
title="dom-fs-target"><code>target</code></dfn> IDL attribute must
<span>reflect</span> the content attribute of the same name. The
<dfn title="dom-fs-method"><code>method</code></dfn> and <dfn
title="dom-fs-enctype"><code>enctype</code></dfn> IDL attributes
must <span>reflect</span> the respective content attributes of the
same name, <span>limited to only known values</span>. The <dfn
title="dom-fs-encoding"><code>encoding</code></dfn> IDL attribute
must <span>reflect</span> the <code
title="attr-fs-enctype">enctype</code> content attribute,
Expand All @@ -53473,8 +53476,11 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
title="attr-fs-novalidate">novalidate</code> content attribute. The
<dfn title="dom-fs-formAction"><code>formAction</code></dfn> IDL
attribute must reflect the <code
title="attr-fs-formaction">formaction</code> content attribute. The
<dfn title="dom-fs-formEnctype"><code>formEnctype</code></dfn> IDL
title="attr-fs-formaction">formaction</code> content attribute,
except that on getting, when the content attribute is missing or its
value is the empty string, <span>the document's address</span> must
be returned instead. The <dfn
title="dom-fs-formEnctype"><code>formEnctype</code></dfn> IDL
attribute must reflect the <code
title="attr-fs-formenctype">formenctype</code> content attribute,
<span>limited to only known values</span>. The <dfn
Expand Down

0 comments on commit d725e42

Please sign in to comment.