Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Mar 2007 05:58:59 +0000 (05:58 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Mar 2007 05:58:59 +0000 (05:58 +0000)
commitc30b0e377bfe72998740f79d496be0165ab2e937
tree0a5d92df5a72060499c4d8b10982190c88dfc519
parent5d6f207d986022b8b2c0281a250fdfcc84e929f5
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=13107
        XPath should raise an exception when trying to parse an unknown function

        Test: fast/xpath/invalid-functions.html

        * xml/XPathFunctions.cpp:
        (WebCore::XPath::createFunction): Return 0 if the function couldn't be created.
        * xml/XPathGrammar.y: Handle nulls returned from createFunction().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xpath/invalid-functions-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/invalid-functions.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/XPathFunctions.cpp
WebCore/xml/XPathGrammar.y