Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Issue 1242233002: The index argument for HTMLCollection item() api should not be optional (Closed)

Created:
5 years, 5 months ago by shiva.jm
Modified:
5 years, 5 months ago
Reviewers:
tkent, philipj_slow
CC:
Habib Virji
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

The index argument for HTMLCollection item() api should not be optional As per spec link: https://dom.spec.whatwg.org/#interface-htmlcollection, index argument for HTMLCollection item() api should not be optional. Firefox throws TypeError:Not enough arguments, if argument is missing. But IE treats the argument as optional, defaulting to 0. BUG=460722 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199198

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -6 lines) Patch
M LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLCollection.idl View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
shiva.jm
pls have a look.
5 years, 5 months ago (2015-07-20 06:58:31 UTC) #2
philipj_slow
On 2015/07/20 06:58:31, shiva.jm wrote: > pls have a look. For changes of this type, ...
5 years, 5 months ago (2015-07-20 07:21:27 UTC) #3
philipj_slow
https://codereview.chromium.org/1242233002/diff/20001/LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg.html File LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg.html (right): https://codereview.chromium.org/1242233002/diff/20001/LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg.html#newcode15 LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg.html:15: shouldThrow("htmlCollection.item()", '"TypeError: Failed to execute \'item\' on \'HTMLCollection\': 1 ...
5 years, 5 months ago (2015-07-20 07:21:33 UTC) #4
shiva.jm
Updated tests and discription, pls have a look. https://codereview.chromium.org/1242233002/diff/20001/LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg.html File LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg.html (right): https://codereview.chromium.org/1242233002/diff/20001/LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg.html#newcode15 LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg.html:15: shouldThrow("htmlCollection.item()", ...
5 years, 5 months ago (2015-07-20 09:55:54 UTC) #6
philipj_slow
LGTM, but since it's optional in IE the risk is higher than some of these ...
5 years, 5 months ago (2015-07-20 10:38:38 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242233002/60001
5 years, 5 months ago (2015-07-20 10:47:10 UTC) #9
tkent
On 2015/07/20 07:21:27, philipj wrote: > I just tested, and IE treats the argument as ...
5 years, 5 months ago (2015-07-21 00:30:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242233002/60001
5 years, 5 months ago (2015-07-21 03:33:20 UTC) #13
commit-bot: I haz the power
5 years, 5 months ago (2015-07-21 04:01:53 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199198

Powered by Google App Engine
This is Rietveld 408576698