darin | 8d1badc | 2006-03-06 16:50:13 +0000 | [diff] [blame] | 1 | /* |
weinig | 3843e43 | 2007-06-07 04:28:36 +0000 | [diff] [blame] | 2 | * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
darin | 8d1badc | 2006-03-06 16:50:13 +0000 | [diff] [blame] | 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Library General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Library General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public License |
| 15 | * along with this library; see the file COPYING.LIB. If not, write to |
ddkilzer | c8eccec | 2007-09-26 02:29:57 +0000 | [diff] [blame] | 16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 | * Boston, MA 02110-1301, USA. |
darin | 8d1badc | 2006-03-06 16:50:13 +0000 | [diff] [blame] | 18 | */ |
| 19 | |
zandobersek@gmail.com | d596156 | 2013-11-11 19:58:05 +0000 | [diff] [blame] | 20 | interface CharacterData : Node { |
cdumez@apple.com | 1b6961b | 2017-05-09 02:46:26 +0000 | [diff] [blame] | 21 | attribute [TreatNullAs=EmptyString] DOMString data; |
commit-queue@webkit.org | cab10ce | 2012-10-12 06:10:17 +0000 | [diff] [blame] | 22 | readonly attribute unsigned long length; |
cdumez@apple.com | 19a4043 | 2017-05-07 03:48:28 +0000 | [diff] [blame] | 23 | [MayThrowException] DOMString substringData(unsigned long offset, unsigned long count); |
cdumez@apple.com | 1b6961b | 2017-05-09 02:46:26 +0000 | [diff] [blame] | 24 | void appendData(DOMString data); |
| 25 | [MayThrowException] void insertData(unsigned long offset, DOMString data); |
| 26 | [MayThrowException] void deleteData(unsigned long offset, unsigned long count); |
| 27 | [MayThrowException] void replaceData(unsigned long offset, unsigned long count, DOMString data); |
commit-queue@webkit.org | cab10ce | 2012-10-12 06:10:17 +0000 | [diff] [blame] | 28 | }; |
arv@chromium.org | 8b0430f | 2012-09-24 20:04:01 +0000 | [diff] [blame] | 29 | |
ch.dumez@sisa.samsung.com | 2df9bd6 | 2013-06-24 07:58:35 +0000 | [diff] [blame] | 30 | CharacterData implements ChildNode; |
cdumez@apple.com | dca77d6 | 2015-05-10 03:22:21 +0000 | [diff] [blame] | 31 | CharacterData implements NonDocumentTypeChildNode; |