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

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?

18 Answers
18

Leave a Comment