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

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
9 years ago
6 years ago

People

(Reporter: cpeyer, Unassigned)

Tracking

unspecified
Future
x86
All
Bug Flags:
in-testsuite ?
flashplayer-qrb +
flashplayer-needsversioning +

Details

(Reporter)

Description

9 years ago
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
(Reporter)

Updated

9 years ago
Flags: in-testsuite?
Flags: flashplayer-qrb?

Updated

9 years ago
Assignee: nobody → jodyer
Flags: flashplayer-qrb? → flashplayer-qrb+
Priority: -- → P3
Target Milestone: --- → Future

Updated

9 years ago
Target Milestone: Future → flash10.1

Comment 1

9 years ago
Any fix for this bug will likely need version-checking for backwards compatibility.

Updated

9 years ago
Flags: flashplayer-needsversioning+

Updated

9 years ago
Target Milestone: flash10.1 → Future

Updated

9 years ago
Priority: P3 → --

Updated

7 years ago
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[]

Updated

7 years ago
Blocks: 479769
e4x support has been removed (bug 788293).
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.