Closed Bug 410740 Opened 17 years ago Closed 12 years ago

E4X: issue when two namespace with same prefix

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: BijuMailList, Unassigned)

References

Details

(Keywords: testcase)

myxml=
  <a xmlns:a="uri.1">
    <b xmlns:a="uri.2">
      <c><d/></c>
    </b>
  </a>;

now myxml.b, myxml.b.c  gives ==> 

  <b xmlns:a="uri.2" xmlns:a="uri.1">
    <c>
      <d/>
    </c>
  </b>

and

  <c xmlns:a="uri.2" xmlns:a="uri.1">
    <d/>
  </c>

I expected ==> 

  <b xmlns:a="uri.2">
    <c>
      <d/>
    </c>
  </b>

and

  <c xmlns:a="uri.2">
    <d/>
  </c>


PS:
1. I have a JS fix for this, so code fix is not urgent.
is this related to Bug 292863
or is this same prefix for different namespace valid in xml?
Summary: E4X: namedup → E4X: issue when two namespace with same prefix
E4X will be removed again from Spidermonkey (bug 788293)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.