Bug 14836
| Summary: | XPathEvaluator.evaluate does not find results from createElementNS on Windows | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jesse Costello-Good <jesse> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | cdumez |
| Priority: | P2 | ||
| Version: | 523.x (Safari 3) | ||
| Hardware: | Mac | ||
| OS: | Windows XP | ||
| Bug Depends on: | |||
| Bug Blocks: | 10489 | ||
Jesse Costello-Good
The following yeilds "<record/>" on Mac but "" on Windows on the latest nighly:
var x = (new DOMParser()).parseFromString('<data><record jsxid="5"/></data>', 'text/xml');
var n = x.createElementNS(null, "record");
x.firstChild.firstChild.appendChild(n);
var e = new XPathEvaluator();
var n = e.evaluate("//record[@jsxid='5']/record", x.documentElement, null, null, null).iterateNext();
(new XMLSerializer()).serializeToString(n);
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jesse Costello-Good
Sorry, got Safari 3 beta and latest nightly confused on Windows platform. It works fine.
Lucas Forschler
Mass moving XML DOM bugs to the "DOM" Component.