Is there a W3C valid way to disable autocomplete in a HTML form?

Posted by matt b on Stack Overflow See other posts from Stack Overflow or by matt b
Published on 2009-02-24T15:43:33Z Indexed on 2010/04/09 15:33 UTC
Read the original article Hit count: 441

Filed under:
|
|
|

When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML

<input type="text" id="cardNumber" name="cardNumber" autocomplete='off'/>

will flag a warning on the W3C validator:

there is no attribute "autocomplete".

Is there a W3C / standards way to disable browser auto-complete on sensitive fields in a form?

© Stack Overflow or respective owner

Related posts about html

Related posts about form