<rdar://problem/
3912979> REGRESSION (125-173): repro crash in HTMLCollectionImpl code (www.clubtravel.ie)
* khtml/html/html_miscimpl.cpp:
(HTMLCollectionImpl::traverseNextItem): Pass base when traversing
the initial one step, otherwise we might inadvertantly step
outside the collection base, thereby causing assertion failures or
other badness later.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8187
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-12-10 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by John.
+
+ <rdar://problem/3912979> REGRESSION (125-173): repro crash in HTMLCollectionImpl code (www.clubtravel.ie)
+
+ * khtml/html/html_miscimpl.cpp:
+ (HTMLCollectionImpl::traverseNextItem): Pass base when traversing
+ the initial one step, otherwise we might inadvertantly step
+ outside the collection base, thereby causing assertion failures or
+ other badness later.
+
2004-12-10 Ken Kocienda <kocienda@apple.com>
Reviewed by Chris
NodeImpl *HTMLCollectionImpl::traverseNextItem(NodeImpl *current) const
{
- current = current->traverseNextNode();
+ current = current->traverseNextNode(base);
while (current) {
if(current->nodeType() == Node::ELEMENT_NODE) {