Iterating backwards over HTMLCollection is O(n^2)
[WebKit-https.git] / Source / WebCore / html / HTMLFormCollection.cpp
index 7be1d1f..b845f0c 100644 (file)
@@ -37,7 +37,7 @@ using namespace HTMLNames;
 // calculation every time if anything has changed.
 
 HTMLFormCollection::HTMLFormCollection(Element* base)
-    : HTMLCollection(base, FormControls)
+    : HTMLCollection(base, FormControls, DoNotSupportItemBefore)
 {
     ASSERT(base->hasTagName(formTag) || base->hasTagName(fieldsetTag));
 }