[Webkit-unassigned] [Bug 13057] XML parsing errors reported ambiguously by DOMParser.parseFromString

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 13 10:47:00 PDT 2007


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


ap at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ap at webkit.org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P1                          |P2




------- Comment #1 from ap at webkit.org  2007-03-13 10:47 PDT -------
I can confirm that the DOMParser error document does not match Firefox. I doubt
that changing it is appropriate for the stabilization period, though.

As for the change in behavior from the previous month - it was actually a
bugfix in XPath. Since our error document is an XHTML one (which is apparently
different from Firefox), you need to use the XHTML namespaces in the XPath
expression:

function nsResolver(prefix) {
    if (prefix == "x")
        return "http://www.w3.org/1999/xhtml";
    return null;
}

var errorNode = (new XPathEvaluator()).evaluate("//x:parsererror//x:div", doc,
nsResolver).iterateNext();

Of course, the code above will cease to work when/if we fix the error document
to match Firefox.


-- 
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