<?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>22815</bug_id>
          
          <creation_ts>2013-07-26 17:33:39 +0000</creation_ts>
          <short_desc>Both autocomplete=&quot;on&quot; and autocomplete=&quot;off&quot; are UA hints and thus should use MAY, not SHOULD language</short_desc>
          <delta_ts>2013-09-26 18:04:12 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>22814</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Edward O&apos;Connor">eoconnor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91326</commentid>
    <comment_count>0</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2013-07-26 17:33:39 +0000</bug_when>
    <thetext>+++ This bug was initially created as a clone of Bug #22814 +++

Currently, the spec for autocomplete=&quot;off&quot; says

&gt; When an element&apos;s autofill field name is &quot;off&quot;, the user agent should not remember the control&apos;s value, and should not offer past values to the user.

And SHOULD, in RFC 2119, basically means &quot;MUST unless you have a really good reason.&quot;

Consider a site with a user signup form and a login form. The signup form doesn&apos;t have autocomplete attributes. A user starts to fill in the registration form, and the user&apos;s browser offers to create a new, unique password for this site. The user agrees.

Later on, the user browses to the site and tries to log in. The login form has autocomplete=&quot;off&quot;. Per spec, the UA should not offer to fill in the stored password for the user, because the author expects the user to type the password in themselves. But in this scenario the user doesn&apos;t even know the password in the first place.

Ultimately, the autocomplete=&quot;&quot; attribute represents a hint to UAs, but UAs should be free to do whatever is in their user&apos;s interests with the hint.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91334</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-26 22:23:28 +0000</bug_when>
    <thetext>It&apos;s SHOULD because there&apos;s a strong reason for why browsers should follow the hint rather than ignore it: banks will freak out and block you if you don&apos;t follow it. So unless you have a good reason to ignore it (such as, you happen to know that the site&apos;s password was autogenerated and so the user hasn&apos;t a hope in heck of knowing what it is), you shouldn&apos;t ignore it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>