-
ap authored
Reviewed by Darin. - changes for http://bugs.webkit.org/show_bug.cgi?id=11078 Forms Don't Submit (ASP Pages) JavaScriptCore: * JavaScriptCore.exp: * kjs/value.cpp: (KJS::JSValue::toInt32): Folded toInt32Inline into this method, which was its only caller. (KJS::JSValue::toUInt32): Added a variant that reports if the conversion has succeeded. * kjs/value.h: WebCore: * bindings/js/kjs_html.cpp: (KJS::JSHTMLCollectionProtoFunc::callAsFunction): Changed item() to fall back to namedItem() if its argument does not convert to a number. LayoutTests: * fast/dom/collection-namedItem-via-item-expected.txt: Added. * fast/dom/collection-namedItem-via-item.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6c85708d