id property for MathML elements does not map to id attribute (was: getElementById() misses MathML elements whose IDs were set by script)

RESOLVED INVALID

Status

()

RESOLVED INVALID
14 years ago
13 years ago

People

(Reporter: jruderman, Assigned: rbs)

Tracking

({testcase})

Trunk
PowerPC
macOS
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

14 years ago
getElementById() misses MathML elements whose ID was set by script.
(Reporter)

Comment 1

14 years ago
Created attachment 195498 [details]
testcase
(Reporter)

Updated

14 years ago
Summary: getElementById() misses MathML elements whose ID was set by script → getElementById() misses MathML elements whose IDs were set by script
(Assignee)

Comment 2

14 years ago
bz, what's up with this getElementById() thing?
You're not setting the "id" attribute, and MathML elements have no special ID
property.
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → INVALID
(Reporter)

Comment 4

14 years ago
Created attachment 195688 [details]
similar testcase that uses setAttribute

Yep, using setAttribute to set the ID makes it work.
(Reporter)

Updated

14 years ago
Summary: getElementById() misses MathML elements whose IDs were set by script → id property for MathML elements does not map to id attribite (was: getElementById() misses MathML elements whose IDs were set by script)
(Reporter)

Updated

13 years ago
Summary: id property for MathML elements does not map to id attribite (was: getElementById() misses MathML elements whose IDs were set by script) → id property for MathML elements does not map to id attribute (was: getElementById() misses MathML elements whose IDs were set by script)
You need to log in before you can comment on or make changes to this bug.