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

Issue 21581003: Drop [IsIndex] attribute from CharacterData API (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
Visibility:
Public.

Description

Drop [IsIndex] attribute from CharacterData API The DOM level3 specification used to require the following CharacterData operations to throw an IndexSizeError if the offset was negative: substringData(), deleteData(), insertData() and replaceData(). This is however not the case anymore in DOM4: http://dom.spec.whatwg.org/#concept-cd-substring http://dom.spec.whatwg.org/#concept-cd-replace We should now only throw an IndexSizeError if the offset is greater than the data length. We can therefore drop the [IsIndex] attribute and let the bindings convert the number to an unsigned long as per the Web IDL specification: http://dev.w3.org/2006/webapi/WebIDL/#es-unsigned-long This behavior is consistent with both IE10 and Firefox. BUG=237739 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155423

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -7 lines) Patch
M LayoutTests/fast/dom/characterdata-api-arguments.html View 3 chunks +15 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/characterdata-api-arguments-expected.txt View 2 chunks +8 lines, -0 lines 0 comments Download
M Source/core/dom/CharacterData.idl View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
do-not-use
7 years, 4 months ago (2013-08-01 18:09:50 UTC) #1
arv (Not doing code reviews)
LGTM
7 years, 4 months ago (2013-08-01 19:04:36 UTC) #2
tkent
lgtm
7 years, 4 months ago (2013-08-01 22:43:45 UTC) #3
haraken
LGTM
7 years, 4 months ago (2013-08-01 23:30:40 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/21581003/1
7 years, 4 months ago (2013-08-02 05:19:55 UTC) #5
commit-bot: I haz the power
7 years, 4 months ago (2013-08-02 09:25:45 UTC) #6
Message was sent while issue was closed.
Change committed as 155423

Powered by Google App Engine
This is Rietveld 408576698