[Webkit-unassigned] [Bug 11815] Incorrect results with XPathEvaluator

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 12 14:47:05 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=11815





------- Comment #2 from jcostell at tibco.com  2006-12-12 14:47 PDT -------
// #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