Closed Bug 263935 Opened 20 years ago Closed 18 years ago

Bogus namespace match with qualified name

Categories

(Rhino Graveyard :: E4X, defect)

head
x86
Linux
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: Qualified names specifying all names in no namespace, match all
names in all namespaces

Test case:

	var ns1 = new Namespace("http://www.ns1.com");
	var ns2 = new Namespace("http://www.ns2.com");
	var none = new Namespace();
	var x = <x/>
	x.foo = "one";
	x.ns1::foo = "two";
	x.ns2::foo = "three";
	x.bar = "four";

	// print all names in no namespace 
	print(x.none::*);
			

Expected:

	<foo>one</foo>
	<bar>four</bar>

Actual:

	<foo>one</foo>
	<ns1:foo xmlns:ns1="http://www.ns1.com">two</ns1:foo>
	<ns2:foo xmlns:ns2="http://www.ns2.com">three</ns2:foo>
	<bar>four</bar>
	
-------------------------
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
Rhino now processes this correctly if XMLBeans is not present.  See bug 355677.
Status: NEW → 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.