Closed
Bug 300098
Opened 19 years ago
Closed 19 years ago
Javascript difference between Firefox and IE
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: chris, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 I use the following HTML to create a form element with two additional attributes ie Slot and BookingID **Note these are not standard elements of the object** <input type="hidden" size="3" Slot="AM" BookingID="43" name="hdn_182_AM" value="123" > I then access the attributes in JS useing code Slot = f.elements['hdn_182_AM'].Slot; BookingID = f.elements['hdn_182_AM'].BookingID; value = f.elements['hdn_182_AM'].value; Under IE ,Slot = "AM" , BookingID = "43" and value = "123" Under FireFox Slot = "Undefined" , BookingID = "Undefined" and value = "123" Should FireFox recoginise the 'adhoc' attributes and handle this code in the same way that IE does? regards Reproducible: Always
Comment 1•19 years ago
|
||
IE exposes attributes in a tag as properties of the corresponding DOM object however Mozilla Firefox does not. To do this cross browser, use the methods getAttribute/setAttribute. Not js engine.
Assignee: general → general
Component: JavaScript Engine → DOM: HTML
QA Contact: general → ian
Comment 2•19 years ago
|
||
wontfix, preempting wontfix.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•