nsIDOMText.idl 1.2 KB

123456789101112131415161718192021222324252627282930
  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. #include "nsIDOMCharacterData.idl"
  6. /**
  7. * The nsIDOMText interface inherits from nsIDOMCharacterData and represents
  8. * the textual content (termed character data in XML) of an Element or Attr.
  9. *
  10. * For more information on this interface please see
  11. * http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html
  12. */
  13. [uuid(67273994-6aff-4091-9de9-b788a249f783)]
  14. interface nsIDOMText : nsIDOMCharacterData
  15. {
  16. nsIDOMText splitText(in unsigned long offset)
  17. raises(DOMException);
  18. /**
  19. * The concatenation of all logically adjacent text nodes with this text
  20. * node, where "logically adjacent" consists of all text nodes which can be
  21. * reached by traversing the document tree in either direction without
  22. * passing an element, comment, or processing-instruction boundary.
  23. */
  24. readonly attribute DOMString wholeText;
  25. };