X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fkhtml%2Fecma%2Fkjs_html.cpp;h=a4d85f738cdb92259efad20a2960c4683d0775e5;hp=3bc417958b0ef0ad5ade30bf69cd0352f8e876f3;hb=4987b3f5a4d0850e229bf799c2b3c5ddf3b663c8;hpb=1272cd50c020bc0cee9b04195d484850998453c0 diff --git a/WebCore/khtml/ecma/kjs_html.cpp b/WebCore/khtml/ecma/kjs_html.cpp index 3bc417958b0e..a4d85f738cdb 100644 --- a/WebCore/khtml/ecma/kjs_html.cpp +++ b/WebCore/khtml/ecma/kjs_html.cpp @@ -332,9 +332,9 @@ Value KJS::HTMLDocument::tryGet(ExecState *exec, const Identifier &propertyName) return Undefined(); } - DOM::HTMLCollection collAll = doc.all(); - KJS::HTMLCollection htmlcoll(exec,collAll); - return htmlcoll.getNamedItems(exec, propertyName); // Get all the items with the same name + DOM::HTMLCollection nameableItems = doc.nameableItems(); + KJS::HTMLCollection kjsCollection(exec,nameableItems); + return kjsCollection.getNamedItems(exec, propertyName); // Get all the items with the same name return Undefined(); }