-
benm@google.com authored
https://bugs.webkit.org/show_bug.cgi?id=41862 Reviewed by Steve Block. WebCore: Test: fast/xpath/substring-nan-position.html * xml/XPathFunctions.cpp: (WebCore::XPath::FunSubstring::evaluate): Add an isnan() to the value returned from evaluating the position argument and early out and return the empty string. LayoutTests: This layout test checks for the case described in the bug and some related edge cases that do currently already pass but only through a fluke. * fast/xpath/substring-nan-position-expected.txt: Added. * fast/xpath/substring-nan-position.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62952 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0c112c01