DescriptionDrop [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 #
Messages
Total messages: 6 (0 generated)
|