[Webkit-unassigned] [Bug 15437] New: XPath substring-after function is broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 9 07:50:10 PDT 2007


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

           Summary: XPath substring-after function is broken
           Product: WebKit
           Version: 522+ (nightly)
          Platform: PC
               URL: http://amachang.art-code.org/xpath_functional_test/
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nanto at moon.email.ne.jp


The substring-after function returns a substring begining at <length of search
string>, instead of <length of search string> + <found index>.

alert(document.evaluate("substring-after('abcde', 'd')",
document, null, XPathResult.STRING_TYPE, null).stringValue);

"e" in Gecko and Opera, "bcde" in WebKit.  This is revealed in amachang's XPath
test (see the URL field).


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