NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 723 - autocomplete="off" is incorrectly reported as an error
autocomplete="off" is incorrectly reported as an error
Status: CLOSED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Nobody
http://www.facebook.com/
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-20 08:03 CET by Maciej Stachowiak
Modified: 2010-03-21 16:11 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Stachowiak 2010-03-20 08:03:07 CET
When validating www.facebook.com, autocomplete=off is reported as an error many times. AFAIK autocomplete=off is conforming HTML5.
Comment 1 Michael[tm] Smith 2010-03-21 15:30:32 CET
(In reply to comment #0)
> When validating www.facebook.com, autocomplete=off is reported as an error many
> times. AFAIK autocomplete=off is conforming HTML5.

The instances of autocomplete=off are actually not conformant to the current HTML5 spec. They all appears to be on input/@type=hidden:

<input type="hidden" id="terms" name="terms" value="on" autocomplete="off" />

…and the spec currently explicitly states that the autocomplete attribute is not valid for input/@type=hidden:

http://dev.w3.org/html5/spec/forms.html#hidden-state

"The following content attributes must not be specified and do not apply to the element: accept, alt, autocomplete..."
Comment 2 Michael[tm] Smith 2010-03-21 16:05:01 CET
closing per IRC discussion with Maciej
Comment 3 Maciej Stachowiak 2010-03-21 16:11:05 CET
Indeed, my mistake.