Skip to content
Permalink
Browse files
[agiow] (0) Fix autocomplete features based on recent feedback.
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7520 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 21, 2012
1 parent 80168d4 commit 4adbd2422745a4325ba12f9aa7840a57e1c7447f
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 65 deletions.
@@ -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 &mdash; Last Updated 20 November 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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 @@ <h5 id=autofilling-form-controls:-the-autocomplete-attribute><span class=secno>4
<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 @@ <h5 id=autofilling-form-controls:-the-autocomplete-attribute><span class=secno>4

<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 @@ <h5 id=autofilling-form-controls:-the-autocomplete-attribute><span class=secno>4
<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 @@ <h5 id=autofilling-form-controls:-the-autocomplete-attribute><span class=secno>4

<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 @@ <h5 id=autofilling-form-controls:-the-autocomplete-attribute><span class=secno>4
<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 @@ <h5 id=autofilling-form-controls:-the-autocomplete-attribute><span class=secno>4

<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 @@ <h5 id=autofilling-form-controls:-the-autocomplete-attribute><span class=secno>4
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>

43 index
@@ -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 &mdash; Last Updated 20 November 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
<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 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>

<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 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
<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 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>

<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 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
<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 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>

<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 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
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>

0 comments on commit 4adbd24

Please sign in to comment.