michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIDOMNode.idl" michael@0: michael@0: /** michael@0: * The nsIDOMCharacterData interface extends nsIDOMNode with a set of michael@0: * attributes and methods for accessing character data in the DOM. michael@0: * michael@0: * For more information on this interface please see michael@0: * http://www.w3.org/TR/DOM-Level-2-Core/ michael@0: */ michael@0: michael@0: [scriptable, uuid(84f72a38-1873-46f8-937c-1df22d7e7cae)] michael@0: interface nsIDOMCharacterData : nsIDOMNode michael@0: { michael@0: attribute DOMString data; michael@0: // raises(DOMException) on setting michael@0: // raises(DOMException) on retrieval michael@0: michael@0: readonly attribute unsigned long length; michael@0: DOMString substringData(in unsigned long offset, michael@0: in unsigned long count) michael@0: raises(DOMException); michael@0: void appendData(in DOMString arg) michael@0: raises(DOMException); michael@0: void insertData(in unsigned long offset, michael@0: in DOMString arg) michael@0: raises(DOMException); michael@0: void deleteData(in unsigned long offset, michael@0: in unsigned long count) michael@0: raises(DOMException); michael@0: void replaceData(in unsigned long offset, michael@0: in unsigned long count, michael@0: in DOMString arg) michael@0: raises(DOMException); michael@0: michael@0: [binaryname(MozRemove)] michael@0: void remove(); michael@0: };