Changeset 51471 in webkit


Ignore:
Timestamp:
Nov 29, 2009 5:02:43 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-29 Shu Chang <Chang.Shu@nokia.com>

Reviewed by Eric Seidel.

Test using Id as index of node list.
https://bugs.webkit.org/show_bug.cgi?id=31428

  • fast/dom/Element/id-in-node-list-index01-expected.txt: Added.
  • fast/dom/Element/id-in-node-list-index01.html: Added.

2009-11-29 Shu Chang <Chang.Shu@nokia.com>

Reviewed by Eric Seidel.

Continue to search for matching node in the case where multiple nodes
have the same id.
https://bugs.webkit.org/show_bug.cgi?id=31428

Test: fast/dom/Element/id-in-node-list-index01.html

  • dom/DynamicNodeList.cpp: (WebCore::DynamicNodeList::itemWithName):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r51459 r51471  
     12009-11-29  Shu Chang  <Chang.Shu@nokia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Test using Id as index of node list.
     6        https://bugs.webkit.org/show_bug.cgi?id=31428
     7
     8        * fast/dom/Element/id-in-node-list-index01-expected.txt: Added.
     9        * fast/dom/Element/id-in-node-list-index01.html: Added.
     10
    1112009-11-28  Adam Barth  <abarth@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r51470 r51471  
     12009-11-29  Shu Chang  <Chang.Shu@nokia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Continue to search for matching node in the case where multiple nodes
     6        have the same id.
     7        https://bugs.webkit.org/show_bug.cgi?id=31428
     8
     9        Test: fast/dom/Element/id-in-node-list-index01.html
     10
     11        * dom/DynamicNodeList.cpp:
     12        (WebCore::DynamicNodeList::itemWithName):
     13
    1142009-11-29  Daniel Bates  <dbates@webkit.org>
    215
  • trunk/WebCore/dom/DynamicNodeList.cpp

    r45620 r51471  
    130130            }
    131131        }
    132         return 0;
     132        if (!node)
     133            return 0;
     134        // In the case of multiple nodes with the same name, just fall through.
    133135    }
    134136
Note: See TracChangeset for help on using the changeset viewer.