1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/core/nsIDOMCharacterData.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsIDOMNode.idl" 1.10 + 1.11 +/** 1.12 + * The nsIDOMCharacterData interface extends nsIDOMNode with a set of 1.13 + * attributes and methods for accessing character data in the DOM. 1.14 + * 1.15 + * For more information on this interface please see 1.16 + * http://www.w3.org/TR/DOM-Level-2-Core/ 1.17 + */ 1.18 + 1.19 +[scriptable, uuid(84f72a38-1873-46f8-937c-1df22d7e7cae)] 1.20 +interface nsIDOMCharacterData : nsIDOMNode 1.21 +{ 1.22 + attribute DOMString data; 1.23 + // raises(DOMException) on setting 1.24 + // raises(DOMException) on retrieval 1.25 + 1.26 + readonly attribute unsigned long length; 1.27 + DOMString substringData(in unsigned long offset, 1.28 + in unsigned long count) 1.29 + raises(DOMException); 1.30 + void appendData(in DOMString arg) 1.31 + raises(DOMException); 1.32 + void insertData(in unsigned long offset, 1.33 + in DOMString arg) 1.34 + raises(DOMException); 1.35 + void deleteData(in unsigned long offset, 1.36 + in unsigned long count) 1.37 + raises(DOMException); 1.38 + void replaceData(in unsigned long offset, 1.39 + in unsigned long count, 1.40 + in DOMString arg) 1.41 + raises(DOMException); 1.42 + 1.43 + [binaryname(MozRemove)] 1.44 + void remove(); 1.45 +};