Closed Bug 644799 Opened 14 years ago Closed 14 years ago

javascript is not accessing user defined properties of html object

Categories

(Core :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: thebigj816, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Build Identifier: 3.x The HTML code- <input type=text id="joshi" value="shashank" prevVal="samir"> I should be able to access prevVal property in javascript like: var pV = document.getElementById('joshi').prevVal; In Internet explorer, I can access. In firefox, I can't access. Reproducible: Always
document.getElementById("joshi").getAttribute("prevVal") will work in all browsers. Mapping DOM attributes into JS properties is something only IE does, sorry.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.