dom/interfaces/core/nsIDOMCharacterData.idl

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:da2206298aa2
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 #include "nsIDOMNode.idl"
7
8 /**
9 * The nsIDOMCharacterData interface extends nsIDOMNode with a set of
10 * attributes and methods for accessing character data in the DOM.
11 *
12 * For more information on this interface please see
13 * http://www.w3.org/TR/DOM-Level-2-Core/
14 */
15
16 [scriptable, uuid(84f72a38-1873-46f8-937c-1df22d7e7cae)]
17 interface nsIDOMCharacterData : nsIDOMNode
18 {
19 attribute DOMString data;
20 // raises(DOMException) on setting
21 // raises(DOMException) on retrieval
22
23 readonly attribute unsigned long length;
24 DOMString substringData(in unsigned long offset,
25 in unsigned long count)
26 raises(DOMException);
27 void appendData(in DOMString arg)
28 raises(DOMException);
29 void insertData(in unsigned long offset,
30 in DOMString arg)
31 raises(DOMException);
32 void deleteData(in unsigned long offset,
33 in unsigned long count)
34 raises(DOMException);
35 void replaceData(in unsigned long offset,
36 in unsigned long count,
37 in DOMString arg)
38 raises(DOMException);
39
40 [binaryname(MozRemove)]
41 void remove();
42 };

mercurial