Closed Bug 348683 Opened 18 years ago Closed 18 years ago

document.getElementById misses elements in the non-primary namespace

Categories

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

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 275196

People

(Reporter: mozilla, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6

Say i have an SVG element, but with an element from a different namespace in it with the 'attribute' xml:id="myelm" then document.getElementById("myelm"); won't find it.

Reproducible: Always
Assignee: nobody → general
Component: General → DOM
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch
From what namespace, you have the other element in? See bug 320724, comment 3. Could you attach a testcase to the bug?
xml:id is not supported.

*** This bug has been marked as a duplicate of 275196 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.