javascript is not accessing user defined properties of html object

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
8 years ago
8 years ago

People

(Reporter: thebigj816, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
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
Last Resolved: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.