2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / WebCore / dom / CharacterData.idl
blob74dc4834e53f5f49ab5819ca782e788c953effca
1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
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.
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.
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
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 module core {
22 interface [
23 GenerateConstructor,
24 InterfaceUUID=149159F4-D2BA-4040-8137-6BF6424C972A,
25 ImplementationUUID=E2095280-B9BD-446a-8C03-79F78417CDFF
26 ] CharacterData : EventTargetNode {
28 attribute [ConvertNullToNullString] DOMString data
29 setter raises(DOMException);
31 readonly attribute unsigned long length;
33 [ConvertNullStringTo=Null, OldStyleObjC] DOMString substringData(in [IsIndex] unsigned long offset,
34 in [IsIndex] unsigned long length)
35 raises(DOMException);
37 void appendData(in DOMString data)
38 raises(DOMException);
40 [OldStyleObjC] void insertData(in [IsIndex] unsigned long offset,
41 in DOMString data)
42 raises(DOMException);
44 [OldStyleObjC] void deleteData(in [IsIndex] unsigned long offset,
45 in [IsIndex] unsigned long length)
46 raises(DOMException);
48 [OldStyleObjC] void replaceData(in [IsIndex] unsigned long offset,
49 in [IsIndex] unsigned long length,
50 in DOMString data)
51 raises(DOMException);