Re: autocomplete=off is not XHTML compliant



Hello Amil,

I have a school test site where students enter answers. I want to
disable the auto complete feature. You can do this for IE via
autocomplete=off to the form or input control. But, this is not XHTML
compliant. Does anyone know how to disable this in a XHTML compliant
manner?

Amil

Most of these features can also be controlled by a meta tag or a meta server header. Not in this case it seems.

Microsoft documents the autocomplete feature here:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/forms/autocomplete_ovr.asp

If you want to stay xhtml compliant, then a solution using Javascript is probably the easiest solution. Just set the autocomplete property of the form or the input to off using script, and your HTML will still validate.
http://chrisholland.blogspot.com/2004/11/banks-protect-privacy-disable.html

On the other hand, you could also ignore the warning.

As side note, Firefox does not honour the autocomplete=off tag in all versions. They do however now recommend to deviate from the xhtml standard and use the IE tag. http://developer.mozilla.org/en/docs/How_to_Turn_Off_Form_Autocompletion#Original_Document_Information

--
Jesse Houwing
jesse.houwing at sogeti.nl


.



Relevant Pages

  • Re: Alternatives to Dreamweaver
    ... render decently. ... XHTML, CSS, and perhaps javascript. ... My friend says that DW has a "template" feature that automatizes ... Follow up to a previous post: that NVU package does *not* work on Sarge. ...
    (Debian-User)
  • Re: Alternatives to Dreamweaver
    ... XHTML, CSS, and perhaps javascript. ... My friend says that DW has a "template" feature that automatizes ... This depends on the Web host. ... Perl, PHP, etc. ...
    (Debian-User)
  • Re: Alternatives to Dreamweaver
    ... XHTML, CSS, and perhaps javascript. ... My friend says that DW has a "template" feature that automatizes ... HTML code, and that's always a good thing. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • jythons future (was: Python development time is faster.)
    ... The jython project currently deploys a pretty cathedral-ish development style, ... compliant version ... compatibility and just let people go and implement whatever feature they want ... this feature is lacking to make my program ...
    (comp.lang.python)
  • Re: this validation stuff for webpages
    ... Even M$ accept IE7 does not conform to the W3 standard. ... They are attempting to get more compliant with IE8 but still advise everyone creating websites to add a meta tag to help them. ... That only applies to HTML 4.01 which was superceded by XHTML and CSS. ...
    (uk.people.silversurfers)