[html5] r7520 - [agiow] (0) Fix autocomplete features based on recent feedback. Affected topics: HTML
whatwg at whatwg.org
whatwg at whatwg.org
Tue Nov 20 17:19:04 PST 2012
Author: ianh
Date: 2012-11-20 17:19:03 -0800 (Tue, 20 Nov 2012)
New Revision: 7520
Modified:
complete.html
index
source
Log:
[agiow] (0) Fix autocomplete features based on recent feedback.
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2012-11-20 23:07:39 UTC (rev 7519)
+++ complete.html 2012-11-21 01:19:03 UTC (rev 7520)
@@ -248,7 +248,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 20 November 2012</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 21 November 2012</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -56559,7 +56559,7 @@
<td>Family name given on the payment instrument (in some Western cultures, also known as the <i>last name</i> or <i>surname</i>)
<td>Berners-Lee
<tr><td colspan=4>"<dfn id=attr-fe-autocomplete-cc-number title=attr-fe-autocomplete-cc-number><code>cc-number</code></dfn>"
- <td>Code identifying the payment instrument (e.g. the credit card number)
+ <td>Code identifying the payment instrument (e.g. the credit card number, bank account number)
<td>4114360123456785 <!-- http://www.auricsystems.com/support-center/sample-credit-card-numbers -->
<tr><td colspan=4>"<dfn id=attr-fe-autocomplete-cc-exp title=attr-fe-autocomplete-cc-exp><code>cc-exp</code></dfn>"
<td>Expiration date of the payment instrument
@@ -56641,10 +56641,9 @@
<div class=impl>
- <p>Each <code><a href=#the-input-element>input</a></code>, <code><a href=#the-select-element>select</a></code>, and
- <code><a href=#the-textarea-element>textarea</a></code> element has an <dfn id=autofill-hint-set>autofill hint set</dfn>,
- an <dfn id=autofill-field-name>autofill field name</dfn>, and an <dfn id=idl-exposed-autofill-value>IDL-exposed autofill
- value</dfn> whose values are defined as the result of running the
+ <p>Each <code><a href=#the-input-element>input</a></code>, <code><a href=#the-select-element>select</a></code>, and <code><a href=#the-textarea-element>textarea</a></code> element has an
+ <dfn id=autofill-hint-set>autofill hint set</dfn>, an <dfn id=autofill-scope>autofill scope</dfn>, an <dfn id=autofill-field-name>autofill field name</dfn>, and
+ an <dfn id=idl-exposed-autofill-value>IDL-exposed autofill value</dfn> whose values are defined as the result of running the
following algorithm:</p>
<ol><li><p>If the element has no <code title=attr-fe-autocomplete><a href=#attr-fe-autocomplete>autocomplete</a></code> attribute, then
@@ -56854,18 +56853,18 @@
<li><p>Insert <var title="">contact</var> at the start of <var title="">scope tokens</var>.</li>
<li><p>Add <var title="">contact</var> to <var title="">hint
- set</var>.</li>
+ tokens</var>.</li>
<li><p>Let <var title="">IDL value</var> be the concatenation of
<var title="">contact</var>, a U+0020 SPACE character, and the
previous value of <var title="">IDL value</var> (which at this
point will always be <var title="">field</var>).</li>
- <li><p>Decrement <var title="">index</var> by one.</li>
-
<li><p>If the <var title="">index</var>th entry in <var title="">tokens</var> is the first entry, then skip to the step
labeled <i>done</i>.</li>
+ <li><p>Decrement <var title="">index</var> by one.</li>
+
</ol></li>
<li>
@@ -56883,20 +56882,20 @@
<li><p>Insert <var title="">mode</var> at the start of <var title="">scope tokens</var>.</li>
- <li><p>Add <var title="">contact</var> to <var title="">hint
- set</var>.</li>
+ <li><p>Add <var title="">mode</var> to <var title="">hint
+ tokens</var>.</li>
<li><p>Let <var title="">IDL value</var> be the concatenation of
<var title="">mode</var>, a U+0020 SPACE character, and the
previous value of <var title="">IDL value</var> (which at this
- point either be <var title="">field</var> or the concatenation of
+ point will either be <var title="">field</var> or the concatenation of
<var title="">contact</var>, a space, and <var title="">field</var>).</li>
- <li><p>Decrement <var title="">index</var> by one.</li>
-
<li><p>If the <var title="">index</var>th entry in <var title="">tokens</var> is the first entry, then skip to the step
labeled <i>done</i>.</li>
+ <li><p>Decrement <var title="">index</var> by one.</li>
+
</ol></li>
<li><p>If the <var title="">index</var>th entry in <var title="">tokens</var> is not the first entry, then jump to the step
@@ -56919,6 +56918,8 @@
<li><p><i>Done</i>: Let the element's <a href=#autofill-hint-set>autofill hint
set</a> be <var title="">hint tokens</var>.</p>
+ <li><p>Let the element's <a href=#autofill-scope>autofill scope</a> be <var title="">scope tokens</var>.</p>
+
<li><p>Let the element's <a href=#autofill-field-name>autofill field name</a> be
<var title="">field</var>.</p>
@@ -56927,9 +56928,8 @@
<li><p>Abort these steps.</li>
- <li><p><i>Default</i>: Let the element's <a href=#idl-exposed-autofill-value>IDL-exposed autofill
- value</a> be the empty string, and let its <a href=#autofill-hint-set>autofill hint
- set</a> be empty.</li>
+ <li><p><i>Default</i>: Let the element's <a href=#idl-exposed-autofill-value>IDL-exposed autofill value</a> be the empty
+ string, and its <a href=#autofill-hint-set>autofill hint set</a> and <a href=#autofill-scope>autofill scope</a> be empty.</li>
<li><p>Let <var title="">form</var> be the element's <a href=#form-owner>form
owner</a>, if any, or null otherwise.</li>
@@ -56992,16 +56992,15 @@
controls whose <a href=#autofill-hint-set>autofill hint set</a> does not contain
either keyword.</p>
- <p>When the user agent prefills form controls, elements with the
- same <a href=#form-owner>form owner</a> and the same <a href=#autofill-hint-set>autofill hint
- set</a> must use data relating to the same person, address,
- payment instrument, and/or contact details.</p>
+ <p>When the user agent prefills form controls, elements with the same <a href=#form-owner>form owner</a> and
+ the same <a href=#autofill-scope>autofill scope</a> must use data relating to the same person, address, payment
+ instrument, and/or contact details.</p>
<p class=example>Suppose a user agent knows of two phone numbers,
+1 555 123 1234 and +1 555 666 7777. It would not be conforming for
the user agent to fill a field with <code title="">autocomplete="shipping tel-local-prefix"</code> with the
value "123" and another field in the same form with <code title="">autocomplete="shipping tel-local-suffix"</code> with the
- value "7777". The only valid pefilled values given the
+ value "7777". The only valid prefilled values given the
aforementioned information would be "123" and "1234", or "666" and
"7777", respectively.</p>
Modified: index
===================================================================
--- index 2012-11-20 23:07:39 UTC (rev 7519)
+++ index 2012-11-21 01:19:03 UTC (rev 7520)
@@ -248,7 +248,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 20 November 2012</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 21 November 2012</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -56559,7 +56559,7 @@
<td>Family name given on the payment instrument (in some Western cultures, also known as the <i>last name</i> or <i>surname</i>)
<td>Berners-Lee
<tr><td colspan=4>"<dfn id=attr-fe-autocomplete-cc-number title=attr-fe-autocomplete-cc-number><code>cc-number</code></dfn>"
- <td>Code identifying the payment instrument (e.g. the credit card number)
+ <td>Code identifying the payment instrument (e.g. the credit card number, bank account number)
<td>4114360123456785 <!-- http://www.auricsystems.com/support-center/sample-credit-card-numbers -->
<tr><td colspan=4>"<dfn id=attr-fe-autocomplete-cc-exp title=attr-fe-autocomplete-cc-exp><code>cc-exp</code></dfn>"
<td>Expiration date of the payment instrument
@@ -56641,10 +56641,9 @@
<div class=impl>
- <p>Each <code><a href=#the-input-element>input</a></code>, <code><a href=#the-select-element>select</a></code>, and
- <code><a href=#the-textarea-element>textarea</a></code> element has an <dfn id=autofill-hint-set>autofill hint set</dfn>,
- an <dfn id=autofill-field-name>autofill field name</dfn>, and an <dfn id=idl-exposed-autofill-value>IDL-exposed autofill
- value</dfn> whose values are defined as the result of running the
+ <p>Each <code><a href=#the-input-element>input</a></code>, <code><a href=#the-select-element>select</a></code>, and <code><a href=#the-textarea-element>textarea</a></code> element has an
+ <dfn id=autofill-hint-set>autofill hint set</dfn>, an <dfn id=autofill-scope>autofill scope</dfn>, an <dfn id=autofill-field-name>autofill field name</dfn>, and
+ an <dfn id=idl-exposed-autofill-value>IDL-exposed autofill value</dfn> whose values are defined as the result of running the
following algorithm:</p>
<ol><li><p>If the element has no <code title=attr-fe-autocomplete><a href=#attr-fe-autocomplete>autocomplete</a></code> attribute, then
@@ -56854,18 +56853,18 @@
<li><p>Insert <var title="">contact</var> at the start of <var title="">scope tokens</var>.</li>
<li><p>Add <var title="">contact</var> to <var title="">hint
- set</var>.</li>
+ tokens</var>.</li>
<li><p>Let <var title="">IDL value</var> be the concatenation of
<var title="">contact</var>, a U+0020 SPACE character, and the
previous value of <var title="">IDL value</var> (which at this
point will always be <var title="">field</var>).</li>
- <li><p>Decrement <var title="">index</var> by one.</li>
-
<li><p>If the <var title="">index</var>th entry in <var title="">tokens</var> is the first entry, then skip to the step
labeled <i>done</i>.</li>
+ <li><p>Decrement <var title="">index</var> by one.</li>
+
</ol></li>
<li>
@@ -56883,20 +56882,20 @@
<li><p>Insert <var title="">mode</var> at the start of <var title="">scope tokens</var>.</li>
- <li><p>Add <var title="">contact</var> to <var title="">hint
- set</var>.</li>
+ <li><p>Add <var title="">mode</var> to <var title="">hint
+ tokens</var>.</li>
<li><p>Let <var title="">IDL value</var> be the concatenation of
<var title="">mode</var>, a U+0020 SPACE character, and the
previous value of <var title="">IDL value</var> (which at this
- point either be <var title="">field</var> or the concatenation of
+ point will either be <var title="">field</var> or the concatenation of
<var title="">contact</var>, a space, and <var title="">field</var>).</li>
- <li><p>Decrement <var title="">index</var> by one.</li>
-
<li><p>If the <var title="">index</var>th entry in <var title="">tokens</var> is the first entry, then skip to the step
labeled <i>done</i>.</li>
+ <li><p>Decrement <var title="">index</var> by one.</li>
+
</ol></li>
<li><p>If the <var title="">index</var>th entry in <var title="">tokens</var> is not the first entry, then jump to the step
@@ -56919,6 +56918,8 @@
<li><p><i>Done</i>: Let the element's <a href=#autofill-hint-set>autofill hint
set</a> be <var title="">hint tokens</var>.</p>
+ <li><p>Let the element's <a href=#autofill-scope>autofill scope</a> be <var title="">scope tokens</var>.</p>
+
<li><p>Let the element's <a href=#autofill-field-name>autofill field name</a> be
<var title="">field</var>.</p>
@@ -56927,9 +56928,8 @@
<li><p>Abort these steps.</li>
- <li><p><i>Default</i>: Let the element's <a href=#idl-exposed-autofill-value>IDL-exposed autofill
- value</a> be the empty string, and let its <a href=#autofill-hint-set>autofill hint
- set</a> be empty.</li>
+ <li><p><i>Default</i>: Let the element's <a href=#idl-exposed-autofill-value>IDL-exposed autofill value</a> be the empty
+ string, and its <a href=#autofill-hint-set>autofill hint set</a> and <a href=#autofill-scope>autofill scope</a> be empty.</li>
<li><p>Let <var title="">form</var> be the element's <a href=#form-owner>form
owner</a>, if any, or null otherwise.</li>
@@ -56992,16 +56992,15 @@
controls whose <a href=#autofill-hint-set>autofill hint set</a> does not contain
either keyword.</p>
- <p>When the user agent prefills form controls, elements with the
- same <a href=#form-owner>form owner</a> and the same <a href=#autofill-hint-set>autofill hint
- set</a> must use data relating to the same person, address,
- payment instrument, and/or contact details.</p>
+ <p>When the user agent prefills form controls, elements with the same <a href=#form-owner>form owner</a> and
+ the same <a href=#autofill-scope>autofill scope</a> must use data relating to the same person, address, payment
+ instrument, and/or contact details.</p>
<p class=example>Suppose a user agent knows of two phone numbers,
+1 555 123 1234 and +1 555 666 7777. It would not be conforming for
the user agent to fill a field with <code title="">autocomplete="shipping tel-local-prefix"</code> with the
value "123" and another field in the same form with <code title="">autocomplete="shipping tel-local-suffix"</code> with the
- value "7777". The only valid pefilled values given the
+ value "7777". The only valid prefilled values given the
aforementioned information would be "123" and "1234", or "666" and
"7777", respectively.</p>
Modified: source
===================================================================
--- source 2012-11-20 23:07:39 UTC (rev 7519)
+++ source 2012-11-21 01:19:03 UTC (rev 7520)
@@ -66265,7 +66265,7 @@
<td>Berners-Lee
<tr>
<td colspan=4>"<dfn title="attr-fe-autocomplete-cc-number"><code>cc-number</code></dfn>"
- <td>Code identifying the payment instrument (e.g. the credit card number)
+ <td>Code identifying the payment instrument (e.g. the credit card number, bank account number)
<td>4114360123456785 <!-- http://www.auricsystems.com/support-center/sample-credit-card-numbers -->
<tr>
<td colspan=4>"<dfn title="attr-fe-autocomplete-cc-exp"><code>cc-exp</code></dfn>"
@@ -66375,10 +66375,9 @@
<div class="impl">
- <p>Each <code>input</code>, <code>select</code>, and
- <code>textarea</code> element has an <dfn>autofill hint set</dfn>,
- an <dfn>autofill field name</dfn>, and an <dfn>IDL-exposed autofill
- value</dfn> whose values are defined as the result of running the
+ <p>Each <code>input</code>, <code>select</code>, and <code>textarea</code> element has an
+ <dfn>autofill hint set</dfn>, an <dfn>autofill scope</dfn>, an <dfn>autofill field name</dfn>, and
+ an <dfn>IDL-exposed autofill value</dfn> whose values are defined as the result of running the
following algorithm:</p>
<ol>
@@ -66658,19 +66657,19 @@
title="">scope tokens</var>.</p></li>
<li><p>Add <var title="">contact</var> to <var title="">hint
- set</var>.</p></li>
+ tokens</var>.</p></li>
<li><p>Let <var title="">IDL value</var> be the concatenation of
<var title="">contact</var>, a U+0020 SPACE character, and the
previous value of <var title="">IDL value</var> (which at this
point will always be <var title="">field</var>).</p></li>
- <li><p>Decrement <var title="">index</var> by one.</p></li>
-
<li><p>If the <var title="">index</var>th entry in <var
title="">tokens</var> is the first entry, then skip to the step
labeled <i>done</i>.</p></li>
+ <li><p>Decrement <var title="">index</var> by one.</p></li>
+
</ol>
</li>
@@ -66697,22 +66696,22 @@
<li><p>Insert <var title="">mode</var> at the start of <var
title="">scope tokens</var>.</p></li>
- <li><p>Add <var title="">contact</var> to <var title="">hint
- set</var>.</p></li>
+ <li><p>Add <var title="">mode</var> to <var title="">hint
+ tokens</var>.</p></li>
<li><p>Let <var title="">IDL value</var> be the concatenation of
<var title="">mode</var>, a U+0020 SPACE character, and the
previous value of <var title="">IDL value</var> (which at this
- point either be <var title="">field</var> or the concatenation of
+ point will either be <var title="">field</var> or the concatenation of
<var title="">contact</var>, a space, and <var
title="">field</var>).</p></li>
- <li><p>Decrement <var title="">index</var> by one.</p></li>
-
<li><p>If the <var title="">index</var>th entry in <var
title="">tokens</var> is the first entry, then skip to the step
labeled <i>done</i>.</p></li>
+ <li><p>Decrement <var title="">index</var> by one.</p></li>
+
</ol>
</li>
@@ -66741,6 +66740,8 @@
<li><p><i>Done</i>: Let the element's <span>autofill hint
set</span> be <var title="">hint tokens</var>.</p>
+ <li><p>Let the element's <span>autofill scope</span> be <var title="">scope tokens</var>.</p>
+
<li><p>Let the element's <span>autofill field name</span> be
<var title="">field</var>.</p>
@@ -66749,9 +66750,8 @@
<li><p>Abort these steps.</p></li>
- <li><p><i>Default</i>: Let the element's <span>IDL-exposed autofill
- value</span> be the empty string, and let its <span>autofill hint
- set</span> be empty.</p></li>
+ <li><p><i>Default</i>: Let the element's <span>IDL-exposed autofill value</span> be the empty
+ string, and its <span>autofill hint set</span> and <span>autofill scope</span> be empty.</p></li>
<li><p>Let <var title="">form</var> be the element's <span>form
owner</span>, if any, or null otherwise.</p></li>
@@ -66827,10 +66827,9 @@
controls whose <span>autofill hint set</span> does not contain
either keyword.</p>
- <p>When the user agent prefills form controls, elements with the
- same <span>form owner</span> and the same <span>autofill hint
- set</span> must use data relating to the same person, address,
- payment instrument, and/or contact details.</p>
+ <p>When the user agent prefills form controls, elements with the same <span>form owner</span> and
+ the same <span>autofill scope</span> must use data relating to the same person, address, payment
+ instrument, and/or contact details.</p>
<p class="example">Suppose a user agent knows of two phone numbers,
+1 555 123 1234 and +1 555 666 7777. It would not be conforming for
@@ -66838,7 +66837,7 @@
title="">autocomplete="shipping tel-local-prefix"</code> with the
value "123" and another field in the same form with <code
title="">autocomplete="shipping tel-local-suffix"</code> with the
- value "7777". The only valid pefilled values given the
+ value "7777". The only valid prefilled values given the
aforementioned information would be "123" and "1234", or "666" and
"7777", respectively.</p>
More information about the Commit-Watchers
mailing list