Closed Bug 263936 Opened 20 years ago Closed 18 years ago

Bogus list element replace

Categories

(Rhino Graveyard :: E4X, defect)

head
x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: igor, Unassigned)

References

Details

-------- Original Message --------
Subject: Found a few E4X bugs
Date: Fri, 30 Jul 2004 16:47:40 -0700
From: John Schneider <john.schneider@agiledelta.com>
Reply-To: <john.schneider@agiledelta.com>
Organization: AgileDelta, Inc.

Description: Replacing an element with a list that contains a text node,
changes the text node into an element.

Test case:

	var x = <x>
			<a>one</a>
			<b>three</b>
		  </x>;

	// insert a text node "two" between elements <a> and <b>
	x.a += XML("two");

	print(x);

Expected:

	<x>
		<a>one</a>
		two
		<b>three</b>
	</x>
	
Actual:

	<x>
		<a>one</a>
		<a>two</a>
		<b>three</b>
	</x>
Blocks: 270779
Reassigning to please_see_bug_288433@eml.cc pending resolution of bug 288433
Assignee: igor.bukanov → please_see_bug_288433
Assignee: please_see_bug_288433 → nobody
OS: Linux → All
This bug is fixed in the upcoming native-DOM implementation of E4X; see bug 355677.
Status: NEW → ASSIGNED
Depends on: 355677
Rhino now passes the regression test in mozilla/js/tests/e4x/Regress/regress-263936.js if XMLBeans is not present.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Adding target milestone of 1.6R6 based on the date this bug was resolved FIXED.
Target Milestone: --- → 1.6R6
You need to log in before you can comment on or make changes to this bug.