Closed
Bug 447672
Opened 16 years ago
Closed 11 years ago
E4X attribute() does not honor qualified names
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: dschaffe, Unassigned)
References
Details
(Keywords: flashplayer)
Reproduction: see bug files var xml:XML = <foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="apple" type="orange" />; var qname:QName = new QName("http://www.w3.org/2001/XMLSchema-instance", "type"); //this returns both attributes with local name type, despite that we pass //a qname that should match only one of the attributes var xmllist:XMLList = xml.attribute(qname); Actual Results: all attributes with the same local name, regardless of namespace are returned Expected Results: only attributes matching the QName should be returned Workaround: post-process the xmllist returned, and look for the xml.name() == qname Transferred Comments: Chris Peyer - Wed Sep 05 16:16:50 CDT 2007 Bug originally filed by Svetlin Kalaydjiev. Dan Smith - Thu Sep 06 10:29:44 CDT 2007 Brent, please triage this bug and confirm whether this is expected E4x behavior. Brent Baker - Tue Nov 20 09:14:00 CST 2007 Super simple ASC/AVM testcase, no player code. This bug transferred from: http://bugs.adobe.com/jira/browse/ASC-2823
Reporter | ||
Comment 1•16 years ago
|
||
transferred from jira. simple testcase below works on TT fails on TC. output on TT correct. http://www.w3.org/2001/XMLSchema-instance::type apple output on TC incorrect. http://www.w3.org/2001/XMLSchema-instance::type apple type orange bug.as: var xml:XML = <foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="apple" type="orange" />; var qname:QName = new QName("http://www.w3.org/2001/XMLSchema-instance", "type"); //this returns both attributes with local name type, despite that we pass //a qname that should match only one of the attributes var xmllist:XMLList = xml.attribute(qname); for each (var val:XML in xmllist) { trace(val.name() + " " + val); }
Flags: flashplayer-triage+
Keywords: flashplayer
Updated•15 years ago
|
Blocks: AS3_Builtins
Updated•15 years ago
|
Priority: -- → P3
Target Milestone: --- → flash10.1
Updated•15 years ago
|
Flags: in-testsuite?
Comment 2•15 years ago
|
||
Any fix for this bug will likely need version-checking for backwards compatibility.
Updated•15 years ago
|
Flags: flashplayer-needsversioning+
Updated•15 years ago
|
Target Milestone: flash10.1 → Future
Updated•15 years ago
|
Priority: P3 → --
Comment 3•11 years ago
|
||
e4x support has been removed (bug 788293).
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•