X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fkhtml%2Fhtml%2Fhtml_miscimpl.cpp;h=88278fd57f9043395d29bc243f7dec28eab644dd;hp=6815f25ffd41166abd0f89800f43866ad5640f98;hb=4987b3f5a4d0850e229bf799c2b3c5ddf3b663c8;hpb=1272cd50c020bc0cee9b04195d484850998453c0 diff --git a/WebCore/khtml/html/html_miscimpl.cpp b/WebCore/khtml/html/html_miscimpl.cpp index 6815f25ffd41..88278fd57f90 100644 --- a/WebCore/khtml/html/html_miscimpl.cpp +++ b/WebCore/khtml/html/html_miscimpl.cpp @@ -119,6 +119,18 @@ NodeImpl *HTMLCollectionImpl::traverseNextItem(NodeImpl *current) const if(e->id() == ID_FORM) found = true; break; + case DOC_NAMEABLE_ITEMS: + if(e->id() == ID_IMG) + found = true; + if(e->id() == ID_FORM) + found = true; + if(e->id() == ID_APPLET) + found = true; + if(e->id() == ID_EMBED) + found = true; + if(e->id() == ID_OBJECT) + found = true; + break; case TABLE_TBODIES: if(e->id() == ID_TBODY) found = true; @@ -352,7 +364,7 @@ void HTMLCollectionImpl::updateNameCache() const e->id() == ID_APPLET || e->id() == ID_OBJECT || e->id() == ID_EMBED))) { // add to name cache - QPtrVector *nameVector = info->idCache.find(nameAttr); + QPtrVector *nameVector = info->nameCache.find(nameAttr); if (!nameVector) { nameVector = new QPtrVector; info->nameCache.insert(nameAttr, nameVector); @@ -656,7 +668,7 @@ void HTMLFormCollectionImpl::updateNameCache() const } if (!nameAttr.isEmpty() && idAttr != nameAttr && !foundInputElements.find(nameAttr)) { // add to name cache - QPtrVector *nameVector = info->idCache.find(nameAttr); + QPtrVector *nameVector = info->nameCache.find(nameAttr); if (!nameVector) { nameVector = new QPtrVector; info->nameCache.insert(nameAttr, nameVector);