Closed
Bug 276359
Opened 21 years ago
Closed 20 years ago
data attribute of object tag returns bogus values
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: bulk88, Unassigned)
References
()
Details
Attachments
(1 file)
1.66 KB,
text/html
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Build Identifier:
When I set the data attribute on a object tag to "" in javascript in IE5, when
I read it back, its "". When I do it in Moz 1.7.3 it gives me back the page
URL. Using view-selection source, in moz, proves that it the attribute did get
changed to "" BTW. This is some kind of bug. See the page or attachment (they
are the same thing) for an example.
Reproducible: Always
Comment 2•21 years ago
|
||
I think this is invalid (IE does the wrong thing, we do the right thing). The
.data DOM attribute gives you the actual URI. If you want to know what the
actual content attribute's value is, you have to use getAttribute('data').
(In reply to comment #2)
> I think this is invalid (IE does the wrong thing, we do the right thing). The
> .data DOM attribute gives you the actual URI. If you want to know what the
> actual content attribute's value is, you have to use getAttribute('data').
Then maybe this behaviour should only be corrected in quirks mode.
Comment 4•21 years ago
|
||
What major sites are affected by this?
![]() |
||
Comment 5•20 years ago
|
||
There's no reason to have a quirk for this that I can see.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•