LayoutTests:
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Feb 2007 22:09:10 +0000 (22:09 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Feb 2007 22:09:10 +0000 (22:09 +0000)
commit8780278eca21f88b0b1db540def4f893622b9f06
tree24670b0c3d4a6e0912516cf44da513c104e4baab
parent790fb4d0c564ce8b3e6b752cbc6fe86d478b4e5e
LayoutTests:

        Reviewed by Maciej.

        http://bugs.webkit.org/show_bug.cgi?id=12733
        XPath namespace is attached to a wrong step

        * fast/xpath/namespace-vs-predicate-expected.txt: Added.
        * fast/xpath/namespace-vs-predicate.xhtml: Added.

WebCore:

        Reviewed by Maciej.

        http://bugs.webkit.org/show_bug.cgi?id=12733
        XPath namespace is attached to a wrong step

        * xml/XPathGrammar.y: NAMETEST is different from other NodeTests in that its
        resulting type is an expanded name, rather than a string. It is not really possible
        to store the namespace inside Parser, because it gets used in wrong steps then.

        * xml/XPathParser.cpp:
        (WebCore::XPath::Parser::expandQName):
        * xml/XPathParser.h:
        Moved code that expands a QName from XPathGrammar.y. Removed m_currentNamespaceURI.

        * xml/XPathStep.cpp:
        (WebCore::XPath::Step::Step):
        * xml/XPathStep.h:
        Added a constructor that takes a namespace.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xpath/namespace-vs-predicate-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/namespace-vs-predicate.xhtml [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/XPathGrammar.y
WebCore/xml/XPathParser.cpp
WebCore/xml/XPathParser.h
WebCore/xml/XPathStep.cpp
WebCore/xml/XPathStep.h