WebCore:
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 May 2006 08:19:44 +0000 (08:19 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 May 2006 08:19:44 +0000 (08:19 +0000)
commit042c6436c6c08b992278a833709bf1956e1a672d
treea8f1a7a05d1b6fe2e186ae42e2d7d5f556fab2e1
parentd0dfab12e46900fa547b214279f57657de2201ee
WebCore:

2006-05-09  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Maciej.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=8803
        XPath query for empty attributes crashes in XPath::StringExpression::StringExpression

        * xpath/impl/XPathParser.cpp:
        (WebCore::XPath::Parser::lexString):
        Make sure an empty string is returned instead of a null string.

        (WebCore::XPath::Parser::lex):
        Only assign the string if it isn't null.

LayoutTests:

2006-05-09  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Maciej.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=8803
        XPath query for empty attributes crashes in XPath::StringExpression::StringExpression

        * xpath/impl/XPathParser.cpp:
        (WebCore::XPath::Parser::lexString):
        Make sure an empty string is returned instead of a null string.

        (WebCore::XPath::Parser::lex):
        Only assign the string if it isn't null.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14254 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/xpath-empty-string-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/xpath-empty-string.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xpath/impl/XPathParser.cpp