Closed
Bug 254341
Opened 20 years ago
Closed 20 years ago
autocomplete="off" cannot be set using javascript
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: brewt-bugzilla.mozilla.org, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 Using javascript to set the autocomplete="off" form property doesn't work in Firefox (and I'm assuming Mozilla in general). However, setting autocomplete="off" in the form, does disable autocompletion. Reproducible: Always Steps to Reproduce: Turn on autocomplete in Firefox/Mozilla, and submit the form. Actual Results: autocomplete is not disabled Expected Results: autocomplete should be disabled. Click on the link at the bottom to see correct behaviour.
Comment 1•20 years ago
|
||
You're setting the _property_, whereas you should be setting the _attribute_ (using setAttribute()). Not all attributes are mapped into properties; in particular, any attributes that are not part of standard HTML are NOT mapped into properties.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Comment 2•20 years ago
|
||
*** Bug 273911 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•