Error Line 228, Column 22: there is no attribute "autocomplete" <input autocomplete="off" type="text" id="edit-mollom-homepage" name="mollom[h…

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

Comments

eshta’s picture

Status: Active » Closed (works as designed)

While the autocomplete attribute is technically new in HTML5, it has been supported by browsers for a long time. I don't really see this as a case of invalid markup from Mollom's end. We are using it on an allowed input type with an allowed value.
http://www.w3schools.com/tags/att_input_autocomplete.asp

btbroot’s picture

Status: Closed (works as designed) » Active

Drupal7 actually generates XHTML + RDFa resources. Take a look:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" version="XHTML+RDFa 1.0" dir="ltr"

Thus, pardon me, Mollom module should not generate parts of these documents in HTML5 or, for instance, in 18th century's French (another beautiful language too).

This it not an HTML5 compatibility bug, nor an any particular browser compatibility bug, it's Drupal7 compatibility bug, and I don't really believe it can be designed as such.

I'm afraid you have to use JS to turn off the input autocompletion.