WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
15437
XPath substring-after function is broken
https://bugs.webkit.org/show_bug.cgi?id=15437
Summary
XPath substring-after function is broken
nanto_vi (TOYAMA Nao)
Reported
2007-10-09 07:50:10 PDT
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).
Attachments
proposed fix
(7.38 KB, patch)
2007-10-09 09:31 PDT
,
Alexey Proskuryakov
mitz: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2007-10-09 09:31:34 PDT
Created
attachment 16595
[details]
proposed fix
mitz
Comment 2
2007-10-09 09:39:03 PDT
Comment on
attachment 16595
[details]
proposed fix r=me
Alexey Proskuryakov
Comment 3
2007-10-09 12:09:37 PDT
Committed revision 26173 (feature branch).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug