<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23782</bug_id>
          
          <creation_ts>2013-11-10 06:57:59 +0000</creation_ts>
          <short_desc>Does it make sense to allow anything but on/off for type=color?</short_desc>
          <delta_ts>2017-11-29 01:49:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#attr-fe-autocomplete</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="قلــــ♥حزين♥ــــــــــب">8lb.7zin81</assigned_to>
          <cc>8lb.7zin81</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96089</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-11-10 06:57:59 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html
Multipage: http://www.whatwg.org/C#attr-fe-autocomplete
Complete: http://www.whatwg.org/c#attr-fe-autocomplete
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html

Comment:
Does it make sense to allow anything but on/off for type=color?

Posted from: 59.37.57.226
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.26 Safari/537.36 OPR/18.0.1284.11 (Edition Next)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96132</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-11 18:25:50 +0000</bug_when>
    <thetext>Probably doesn&apos;t make sense to use anything but on/off... but do we want to make it non-conforming?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96160</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-11-12 03:27:31 +0000</bug_when>
    <thetext>So autocomplete applies to these states

Text,
Search
URL,
Telephone
E-mail
Password
Date and Time,
Date,
Month,
Week,
Time
Local Date and Time
Number
Range
Color

(according to http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary )

Only certain values make sense for certain states, e.g. &quot;name&quot; should really use only Text I think, &quot;street-address&quot; should be &lt;textarea&gt;, &quot;photo&quot; should be URL or File, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96211</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-12 21:54:42 +0000</bug_when>
    <thetext>I guess we could check for the cases that definitely make no sense, just to help authors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96569</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-19 23:15:02 +0000</bug_when>
    <thetext>How do we want to approach this? Annotate the table at:

   http://www.whatwg.org/specs/web-apps/current-work/#autofill-field

...with categories that say which of type=text, type=search, type=tel, type=url, type=email, type=password, type=datetime, type=date, type=month, type=week, type=time, type=datetime-local, type=number, type=range, type=color, and &lt;textarea&gt; can have them?

I guess type=text, type=search, and &lt;textarea&gt; should be allowed for all of them.
Any that say &quot;Valid integer&quot; should also allow type=number.
&quot;Valid month string&quot; should also allow type=month.
&quot;Valid date string&quot; type=date.
&quot;Valid URL&quot; type=url.
&quot;File or Valid URL&quot; should also allow type=url or type=file.
&quot;tel&quot; should also allow type=tel.
&quot;Valid e-mail address&quot; should also allow type=email.

Anything else?


Interestingly, &lt;select&gt; doesn&apos;t currently allow autocomplete, I wonder what&apos;s up with that. &quot;country&quot; was _designed_ for &lt;select&gt;. Should probably file a new bug for that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96581</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-11-20 08:05:26 +0000</bug_when>
    <thetext>That seems OK, except &quot;Free-form text, no newlines&quot; should probably not allow &lt;textarea&gt;.

The current &quot;Valid URL&quot; should maybe be &quot;Valid URL potentially surrounded by spaces&quot;? &lt;input type=url&gt;&apos;s value attribute allows spaces.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96705</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-22 18:13:59 +0000</bug_when>
    <thetext>The types in that table are the types the browser should restrict itself to, not the types the user should be restricted to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98112</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-08 00:06:05 +0000</bug_when>
    <thetext>I noticed that type=file isn&apos;t actually allowed to have autocomplete=&quot;&quot; currently. So I guess those that say &quot;File...&quot; are somewhat pointless until we change that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98113</commentid>
    <comment_count>8</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-01-08 00:24:41 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8384.
Check-in comment: Define some authoring conformance criteria that e.g. prevent autocomplete=&apos;shipping tel&apos; being set on an &lt;input type=date&gt;
http://html5.org/tools/web-apps-tracker?from=8383&amp;to=8384</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128981</commentid>
    <comment_count>9</comment_count>
      <attachid>1686</attachid>
    <who name="قلــــ♥حزين♥ــــــــــب">8lb.7zin81</who>
    <bug_when>2017-11-29 01:46:15 +0000</bug_when>
    <thetext>Created attachment 1686
Please forgot my password is the old password

Please forgot my password is the old password</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1686</attachid>
            <date>2017-11-29 01:46:15 +0000</date>
            <delta_ts>2017-11-29 01:46:15 +0000</delta_ts>
            <desc>Please forgot my password is the old password</desc>
            <filename>file_23782.txt</filename>
            <type>text/plain</type>
            <size>59</size>
            <attacher name="قلــــ♥حزين♥ــــــــــب">8lb.7zin81</attacher>
            
              <data encoding="base64">DQpodHRwOi8vZ2V0Lm5pbWJ1enouY29tL2FjY291bnQtcmVjb3ZlcnkvY29uZmlybT9pZD0za2Nn
aDg=
</data>

          </attachment>
      

    </bug>

</bugzilla>