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

Issue 21766002: NodeList.item() does not behave according to specification (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, do-not-use, lgombos, jsbell
Visibility:
Public.

Description

NodeList.item() does not behave according to specification NodeList.item() does not behave according to specification: http://dom.spec.whatwg.org/#nodelist Namely, we should not throw if the index is negative (meaning we should drop the [IsIndex] extended attribute) and the argument should be mandatory. This behavior is consistent with both IE10 and Firefox. BUG=237739 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155514

Patch Set 1 #

Patch Set 2 : Add extra check #

Patch Set 3 : Simplify link tag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -3 lines) Patch
A LayoutTests/fast/dom/nodelist-item-parameter.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/nodelist-item-parameter-expected.txt View 1 1 chunk +16 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/NodeList.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
do-not-use
7 years, 4 months ago (2013-08-02 08:35:56 UTC) #1
haraken
LGTM. Please wait for an approval from an API owner.
7 years, 4 months ago (2013-08-02 08:40:41 UTC) #2
arv (Not doing code reviews)
LGTM
7 years, 4 months ago (2013-08-02 14:04:51 UTC) #3
tkent
lgtm
7 years, 4 months ago (2013-08-04 22:31:32 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/21766002/10001
7 years, 4 months ago (2013-08-05 05:41:59 UTC) #5
commit-bot: I haz the power
7 years, 4 months ago (2013-08-05 08:15:43 UTC) #6
Message was sent while issue was closed.
Change committed as 155514

Powered by Google App Engine
This is Rietveld 408576698