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

Unified Diff: Source/core/dom/CharacterData.idl

Issue 946823002: Sync CharacterData and related interfaces with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: of Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/Comment.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/CharacterData.idl
diff --git a/Source/core/dom/CharacterData.idl b/Source/core/dom/CharacterData.idl
index 153cc7ac28207852d60e07e7dfb1bc38fe24a8f8..ac6ff0a172c7d6cad04cb982868515a5a60d2759 100644
--- a/Source/core/dom/CharacterData.idl
+++ b/Source/core/dom/CharacterData.idl
@@ -17,18 +17,17 @@
* Boston, MA 02110-1301, USA.
*/
-interface CharacterData : Node {
+// https://dom.spec.whatwg.org/#interface-characterdata
+interface CharacterData : Node {
[TreatNullAs=NullString] attribute DOMString data;
-
readonly attribute unsigned long length;
-
- [RaisesException] DOMString? substringData(unsigned long offset, unsigned long length);
-
+ // FIXME: substringData return value should not be nullable.
+ [RaisesException] DOMString? substringData(unsigned long offset, unsigned long count);
void appendData(DOMString data);
[RaisesException] void insertData(unsigned long offset, DOMString data);
- [RaisesException] void deleteData(unsigned long offset, unsigned long length);
- [RaisesException] void replaceData(unsigned long offset, unsigned long length, DOMString data);
+ [RaisesException] void deleteData(unsigned long offset, unsigned long count);
+ [RaisesException] void replaceData(unsigned long offset, unsigned long count, DOMString data);
};
CharacterData implements ChildNode;
« no previous file with comments | « no previous file | Source/core/dom/Comment.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698