[Webkit-unassigned] [Bug 50366] New: XPath lexer misinterprets expression starting with "div".

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 1 18:22:41 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=50366

           Summary: XPath lexer misinterprets expression starting with
                    "div".
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P3
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yonathan at gmail.com


The following expression fails because the first token is interpreted as binary operator "div", not the step "div".
document.evaluate('div', document.body, null, XPathResult.SINGLE_NODE_VALUE, null)
(Error: INVALID_EXPRESSION_ERR: DOM XPath Exception 51)

It's easy to work around the bug:
document.evaluate('./div', document.body, null, XPathResult.SINGLE_NODE_VALUE, null)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list