dom/interfaces/core/nsIDOMCharacterData.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/. */
     6 #include "nsIDOMNode.idl"
     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  */
    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
    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);
    40   [binaryname(MozRemove)]
    41   void remove();
    42 };

mercurial