Bug 12603

Summary: A crash when trying to use XPath functions normalize-space() and string-length()
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: XMLAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P1    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
test case
none
proposed fix darin: review+

Alexey Proskuryakov
Reported 2007-02-04 11:46:44 PST
That's the punishment for using a manually written tokenizer!
Attachments
test case (875 bytes, text/html)
2007-02-04 11:48 PST, Alexey Proskuryakov
no flags
proposed fix (5.24 KB, patch)
2007-02-07 10:52 PST, Alexey Proskuryakov
darin: review+
Alexey Proskuryakov
Comment 1 2007-02-04 11:48:02 PST
Created attachment 12921 [details] test case This test is also used for bug 12602 (with two offending cases commented out).
Maciej Stachowiak
Comment 2 2007-02-06 23:25:23 PST
Alexey Proskuryakov
Comment 3 2007-02-07 10:43:51 PST
Actually, the tokenizer is OK - it's just another problem with implicit arguments in these functions (and in number()).
Alexey Proskuryakov
Comment 4 2007-02-07 10:52:07 PST
Created attachment 13011 [details] proposed fix
mitz
Comment 5 2007-02-07 10:56:00 PST
Per the style guidelines, + if (argCount() == 0) should be rewritten as + if (!argCount())
Darin Adler
Comment 6 2007-02-07 11:02:19 PST
Comment on attachment 13011 [details] proposed fix r=me
Alexey Proskuryakov
Comment 7 2007-02-07 11:08:19 PST
Committed revision 19467. (In reply to comment #5) > Per the style guidelines, Fixed here and in several other places in the file. /me stabs this guideline.
Note You need to log in before you can comment on or make changes to this bug.