Closed Bug 276359 Opened 20 years ago Closed 20 years ago

data attribute of object tag returns bogus values

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: bulk88, Unassigned)

References

()

Details

Attachments

(1 file)

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
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.

What major sites are affected by this?
There's no reason to have a quirk for this that I can see.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: