Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Jan 2007 19:01:59 +0000 (19:01 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Jan 2007 19:01:59 +0000 (19:01 +0000)
commit99160684f2edfe7288519885f96870c3134af10b
treee84b634aaecb77a1ca460b3b7a8aaa9e778ed0ed
parent16c5de051c395a4ba9c4d7c214f66eefbe14a197
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=12452
        XPath id() function is not supported

WebCore:
        * xml/XPathFunctions.cpp:
        (WebCore::XPath::isWhitespace): A helper to detect XML whitespace.

        (WebCore::XPath::FunId::isConstant):
        (WebCore::XPath::FunId::doEvaluate):
        (WebCore::XPath::FunctionMapping::):
        Implemented id().

LayoutTests:
        * dom/svg/level3/xpath/Conformance_ID-expected.txt:
        This test now passes.

        * fast/xpath/complex-id-expected.txt: Added.
        * fast/xpath/complex-id.html: Added.
        A test for more advanced id() capabilities.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/dom/svg/level3/xpath/Conformance_ID-expected.txt
LayoutTests/fast/xpath/complex-id-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/complex-id.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/XPathFunctions.cpp