-
ch.dumez@sisa.samsung.com authored
https://bugs.webkit.org/show_bug.cgi?id=119722 Reviewed by Darin Adler. Source/WebCore: Make NodeList.item() indexed getter behave according to specification: http://dom.spec.whatwg.org/#nodelist Namely, we no longer throw if the index is negative (meaning the [IsIndex] extended attribute is dropped) and the argument is now mandatory. This behavior is consistent with both IE10 and Firefox and since recently Blink. Test: fast/dom/nodelist-item-parameter.html * dom/NodeList.idl: LayoutTests: Add a layout test to check that the NodeList.item() indexed getter's argument is properly validated. Also, update the following test case now that the argument is mandatory: fast/dom/non-numeric-values-numeric-parameters.html * fast/dom/nodelist-item-parameter-expected.txt: Added. * fast/dom/nodelist-item-parameter.html: Added. * fast/dom/non-numeric-values-numeric-parameters-expected.txt: * fast/dom/script-tests/non-numeric-values-numeric-parameters.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154012 268f45cc-cd09-0410-ab3c-d52691b4dbfc
98e7eeb2