dom/interfaces/core/nsIDOMText.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/core/nsIDOMText.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     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 "nsIDOMCharacterData.idl"
    1.10 +
    1.11 +/**
    1.12 + * The nsIDOMText interface inherits from nsIDOMCharacterData and represents 
    1.13 + * the textual content (termed character data in XML) of an Element or Attr.
    1.14 + *
    1.15 + * For more information on this interface please see 
    1.16 + * http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html
    1.17 + */
    1.18 +
    1.19 +[scriptable, uuid(d14d13b4-21d5-49e2-8d59-76a24156db54)]
    1.20 +interface nsIDOMText : nsIDOMCharacterData
    1.21 +{
    1.22 +  nsIDOMText                      splitText(in unsigned long offset)
    1.23 +                                       raises(DOMException);
    1.24 +
    1.25 +  /**
    1.26 +   * The concatenation of all logically adjacent text nodes with this text
    1.27 +   * node, where "logically adjacent" consists of all text nodes which can be
    1.28 +   * reached by traversing the document tree in either direction without
    1.29 +   * passing an element, comment, or processing-instruction boundary.  
    1.30 +   */
    1.31 +  readonly attribute DOMString wholeText;
    1.32 +};

mercurial