[Webkit-unassigned] [Bug 12340] New: XPathEvaluator behavior does not match Firefox - name() and attribute nodes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 19 22:31:19 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12340
Summary: XPathEvaluator behavior does not match Firefox - name()
and attribute nodes
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: XML
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jcostell at tibco.com
// #2
// function name() does not work with attribute nodes
var strXML = '<data><record id="-a-" a="v">???</record><record
id="a-a">{abc}</record></data>';
var doc = (new DOMParser()).parseFromString(strXML, "text/xml");
var xpe = new XPathEvaluator();
var objResult = xpe.evaluate("//@*[name()='id']", doc, null, 0, null);
var itm = null;
var objNodes = [];
while (itm = objResult.iterateNext()) objNodes.push(itm);
assertEquals(2, objNodes.length); // Safari yields 0
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list