Closed Bug 510107 Opened 16 years ago Closed 12 years ago

E4X: namespace lost and new namespace created when appending a node via operator[]

Categories

(Tamarin Graveyard :: Library, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: cpeyer, Unassigned)

References

Details

Description: When appending to a node a few levels deep, when each node has a namespace, the namespace ends up being lost and the node hierarchy is replicated to some extent, with the one new node being created having a namespace of "null" (the string n-u-l-l) and another one added as an unqualified element, which would put it in the default namespace if one were present. Steps to reproduce: 1. Run the following: var xml:XML = <ss:Root xmlns:ss="some-ns"> <ss:Depth1> <ss:Depth2> <ss:Depth3/> </ss:Depth2> </ss:Depth1> </ss:Root> var ssNS:Namespace = xml.namespace("some-ns"); default xml namespace = ssNS; xml.Depth1.Depth2.children()[xml.Depth1.Depth2.children().length()] = <ss:Child2 xmlns:ss="some-ns"/>; trace(xml.toXMLString()); Actual Results: <ss:Root xmlns:ss="some-ns"> <ss:Depth1> <ss:Depth2> <ss:Depth3/> </ss:Depth2> </ss:Depth1> <Depth1 xmlns="null"> <Depth2> <ss:Child2/> </Depth2> </Depth1> </ss:Root> Expected Results: <ss:Root xmlns:ss="some-ns"> <ss:Depth1> <ss:Depth2> <ss:Depth3/> <ss:Child2/> </ss:Depth2> </ss:Depth1> </ss:Root> This bug transferred from: http://bugs.adobe.com/jira/browse/ASC-3788
Flags: in-testsuite?
Flags: flashplayer-qrb?
Assignee: nobody → jodyer
Flags: flashplayer-qrb? → flashplayer-qrb+
Priority: -- → P3
Target Milestone: --- → Future
Target Milestone: Future → flash10.1
Any fix for this bug will likely need version-checking for backwards compatibility.
Flags: flashplayer-needsversioning+
Target Milestone: flash10.1 → Future
Priority: P3 → --
Assignee: jodyer → nobody
Component: Virtual Machine → Library
QA Contact: vm → library
Summary: namespace lost and new namespace created when appending a node via operator[] → E4X: namespace lost and new namespace created when appending a node via operator[]
Blocks: AS3_Builtins
e4x support has been removed (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.