Skip to content

Commit

Permalink
[e] (0) examples for multiple='' and list='' together.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8446

git-svn-id: http://svn.whatwg.org/webapps@4503 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 6, 2010
1 parent 2ac72b8 commit c1ad75b
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
40 changes: 40 additions & 0 deletions complete.html
Expand Up @@ -35890,6 +35890,46 @@ <h6 id=the-multiple-attribute><span class=secno>4.10.5.2.6 </span>The <code titl

<pre>&lt;label&gt;Cc: &lt;input type=email multiple name=cc&gt;&lt;/label&gt;</pre>

<p>If the user had, amongst many friends in his user contacts
database, two friends "Arthur Dent" (with address
"art@example.net") and "Adam Josh" (with address
"adamjosh@example.net"), then, after the user has typed "a", the
user agent might suggest these two e-mail addresses to the
user.</p>

<!--
<pre>[ a | v ]
| art@example.net Arthur Dent |
| adamjosh@example.net Adam Josh |
+-----------------------------------+</pre>
-->

<p>The page could also link in the user's contacts database from the site:</p>

<pre>&lt;label&gt;Cc: &lt;input type=email multiple name=cc list=contacts&gt;&lt;/label&gt;
...
&lt;datalist id="contacts"&gt;
&lt;option value="hedral@damowmow.com"&gt;
&lt;option value="pillar@example.com"&gt;
&lt;option value="astrophy@cute.example"&gt;
&lt;option value="astronomy@science.example.org"&gt;
&lt;/datalist&gt;</pre>

<p>Suppose the user had entered "bob@example.net" into this text
field, and then started typing a second e-mail address starting
with "a". The user agent might show both the two friends mentioned
earlier, as well as the "astrophy" and "astronomy" values given in
the <code><a href=#the-datalist-element>datalist</a></code> element.</p>

<!--
<pre>[ bob@example.net, a | v ]
| adamjosh@example.net Adam Josh |
| art@example.net Arthur Dent |
| astronomy@science.example.org |
| astrophy@cute.example |
+-----------------------------------+</pre>
-->

</div>

<div class=example>
Expand Down
40 changes: 40 additions & 0 deletions index
Expand Up @@ -35725,6 +35725,46 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H

<pre>&lt;label&gt;Cc: &lt;input type=email multiple name=cc&gt;&lt;/label&gt;</pre>

<p>If the user had, amongst many friends in his user contacts
database, two friends "Arthur Dent" (with address
"art@example.net") and "Adam Josh" (with address
"adamjosh@example.net"), then, after the user has typed "a", the
user agent might suggest these two e-mail addresses to the
user.</p>

<!--
<pre>[ a | v ]
| art@example.net Arthur Dent |
| adamjosh@example.net Adam Josh |
+-----------------------------------+</pre>
-->

<p>The page could also link in the user's contacts database from the site:</p>

<pre>&lt;label&gt;Cc: &lt;input type=email multiple name=cc list=contacts&gt;&lt;/label&gt;
...
&lt;datalist id="contacts"&gt;
&lt;option value="hedral@damowmow.com"&gt;
&lt;option value="pillar@example.com"&gt;
&lt;option value="astrophy@cute.example"&gt;
&lt;option value="astronomy@science.example.org"&gt;
&lt;/datalist&gt;</pre>

<p>Suppose the user had entered "bob@example.net" into this text
field, and then started typing a second e-mail address starting
with "a". The user agent might show both the two friends mentioned
earlier, as well as the "astrophy" and "astronomy" values given in
the <code><a href=#the-datalist-element>datalist</a></code> element.</p>

<!--
<pre>[ bob@example.net, a | v ]
| adamjosh@example.net Adam Josh |
| art@example.net Arthur Dent |
| astronomy@science.example.org |
| astrophy@cute.example |
+-----------------------------------+</pre>
-->

</div>

<div class=example>
Expand Down
40 changes: 40 additions & 0 deletions source
Expand Up @@ -39689,6 +39689,46 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {

<pre>&lt;label>Cc: &lt;input type=email multiple name=cc>&lt;/label></pre>

<p>If the user had, amongst many friends in his user contacts
database, two friends "Arthur Dent" (with address
"art@example.net") and "Adam Josh" (with address
"adamjosh@example.net"), then, after the user has typed "a", the
user agent might suggest these two e-mail addresses to the
user.</p>

<!--
<pre>[ a | v ]
| art@example.net Arthur Dent |
| adamjosh@example.net Adam Josh |
+-----------------------------------+</pre>
-->

<p>The page could also link in the user's contacts database from the site:</p>

<pre>&lt;label>Cc: &lt;input type=email multiple name=cc list=contacts>&lt;/label>
...
&lt;datalist id="contacts">
&lt;option value="hedral@damowmow.com">
&lt;option value="pillar@example.com">
&lt;option value="astrophy@cute.example">
&lt;option value="astronomy@science.example.org">
&lt;/datalist></pre>

<p>Suppose the user had entered "bob@example.net" into this text
field, and then started typing a second e-mail address starting
with "a". The user agent might show both the two friends mentioned
earlier, as well as the "astrophy" and "astronomy" values given in
the <code>datalist</code> element.</p>

<!--
<pre>[ bob@example.net, a | v ]
| adamjosh@example.net Adam Josh |
| art@example.net Arthur Dent |
| astronomy@science.example.org |
| astrophy@cute.example |
+-----------------------------------+</pre>
-->

</div>

<div class="example">
Expand Down

0 comments on commit c1ad75b

Please sign in to comment.