Changeset 20057 in webkit


Ignore:
Timestamp:
Mar 8, 2007 12:48:55 AM (17 years ago)
Author:
ap
Message:

WebCore:

Build fix.

  • xml/XPathUtil.cpp: (WebCore::XPath::stringValue):

LayoutTests:

Added a test for attribute node string-value.

  • fast/xpath/string-value-expected.txt:
  • fast/xpath/string-value.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r20055 r20057  
     12007-03-08  Alexey Proskuryakov  <ap@webkit.org>
     2
     3        Added a test for attribute node string-value.
     4
     5        * fast/xpath/string-value-expected.txt:
     6        * fast/xpath/string-value.html:
     7
    182007-03-08  Alexey Proskuryakov  <ap@webkit.org>
    29
  • trunk/LayoutTests/fast/xpath/string-value-expected.txt

    r20055 r20057  
    66PASS doc.evaluate('.', TEXT, null, XPathResult.STRING_TYPE, null).stringValue is '0  '
    77PASS doc.evaluate('.', EMPTY, null, XPathResult.STRING_TYPE, null).stringValue is ''
     8PASS doc.evaluate('.', ATTR, null, XPathResult.STRING_TYPE, null).stringValue is '<&nbsp;>'
    89PASS successfullyParsed is true
    910
  • trunk/LayoutTests/fast/xpath/string-value.html

    r20055 r20057  
    4242    shouldBe("doc.evaluate('.', TEXT, null, XPathResult.STRING_TYPE, null).stringValue", "'0  '");
    4343    shouldBe("doc.evaluate('.', EMPTY, null, XPathResult.STRING_TYPE, null).stringValue", "''");
     44    shouldBe("doc.evaluate('.', ATTR, null, XPathResult.STRING_TYPE, null).stringValue", "'<&nbsp;>'");
    4445
    4546    var successfullyParsed = true;
  • trunk/WebCore/ChangeLog

    r20056 r20057  
     12007-03-08  Alexey Proskuryakov  <ap@webkit.org>
     2
     3        Build fix.
     4
     5        * xml/XPathUtil.cpp:
     6        (WebCore::XPath::stringValue):
     7
    182007-03-08  David Hyatt  <hyatt@apple.com>
    29
  • trunk/WebCore/xml/XPathUtil.cpp

    r20055 r20057  
    5656                for (Node* n = node->firstChild(); n; n = n->traverseNextNode(node))
    5757                    if (n->isTextNode())
    58                         str += nodeValue(n);
     58                        str += n->nodeValue();
    5959
    6060                return str;
Note: See TracChangeset for help on using the changeset viewer.