PageRenderTime 78ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_sdk/idl/nsIDOMNode.idl

http://firefox-mac-pdf.googlecode.com/
IDL | 110 lines | 47 code | 5 blank | 58 comment | 0 complexity | de93ff9368117df07718a9216323aff8 MD5 | raw file
  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * The Original Code is mozilla.org code.
  16. *
  17. * The Initial Developer of the Original Code is
  18. * Netscape Communications Corporation.
  19. * Portions created by the Initial Developer are Copyright (C) 2000
  20. * the Initial Developer. All Rights Reserved.
  21. *
  22. * Contributor(s):
  23. * Vidur Apparao <vidur@netscape.com> (original author)
  24. * Johnny Stenback <jst@netscape.com>
  25. *
  26. * Alternatively, the contents of this file may be used under the terms of
  27. * either of the GNU General Public License Version 2 or later (the "GPL"),
  28. * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29. * in which case the provisions of the GPL or the LGPL are applicable instead
  30. * of those above. If you wish to allow use of your version of this file only
  31. * under the terms of either the GPL or the LGPL, and not to allow others to
  32. * use your version of this file under the terms of the MPL, indicate your
  33. * decision by deleting the provisions above and replace them with the notice
  34. * and other provisions required by the GPL or the LGPL. If you do not delete
  35. * the provisions above, a recipient may use your version of this file under
  36. * the terms of any one of the MPL, the GPL or the LGPL.
  37. *
  38. * ***** END LICENSE BLOCK ***** */
  39. #include "domstubs.idl"
  40. /**
  41. * The nsIDOMNode interface is the primary datatype for the entire
  42. * Document Object Model.
  43. * It represents a single node in the document tree.
  44. *
  45. * For more information on this interface please see
  46. * http://www.w3.org/TR/DOM-Level-2-Core/
  47. *
  48. * @status FROZEN
  49. */
  50. [scriptable, uuid(a6cf907c-15b3-11d2-932e-00805f8add32)]
  51. interface nsIDOMNode : nsISupports
  52. {
  53. const unsigned short ELEMENT_NODE = 1;
  54. const unsigned short ATTRIBUTE_NODE = 2;
  55. const unsigned short TEXT_NODE = 3;
  56. const unsigned short CDATA_SECTION_NODE = 4;
  57. const unsigned short ENTITY_REFERENCE_NODE = 5;
  58. const unsigned short ENTITY_NODE = 6;
  59. const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
  60. const unsigned short COMMENT_NODE = 8;
  61. const unsigned short DOCUMENT_NODE = 9;
  62. const unsigned short DOCUMENT_TYPE_NODE = 10;
  63. const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
  64. const unsigned short NOTATION_NODE = 12;
  65. readonly attribute DOMString nodeName;
  66. attribute DOMString nodeValue;
  67. // raises(DOMException) on setting
  68. // raises(DOMException) on retrieval
  69. readonly attribute unsigned short nodeType;
  70. readonly attribute nsIDOMNode parentNode;
  71. readonly attribute nsIDOMNodeList childNodes;
  72. readonly attribute nsIDOMNode firstChild;
  73. readonly attribute nsIDOMNode lastChild;
  74. readonly attribute nsIDOMNode previousSibling;
  75. readonly attribute nsIDOMNode nextSibling;
  76. readonly attribute nsIDOMNamedNodeMap attributes;
  77. // Modified in DOM Level 2:
  78. readonly attribute nsIDOMDocument ownerDocument;
  79. nsIDOMNode insertBefore(in nsIDOMNode newChild,
  80. in nsIDOMNode refChild)
  81. raises(DOMException);
  82. nsIDOMNode replaceChild(in nsIDOMNode newChild,
  83. in nsIDOMNode oldChild)
  84. raises(DOMException);
  85. nsIDOMNode removeChild(in nsIDOMNode oldChild)
  86. raises(DOMException);
  87. nsIDOMNode appendChild(in nsIDOMNode newChild)
  88. raises(DOMException);
  89. boolean hasChildNodes();
  90. nsIDOMNode cloneNode(in boolean deep);
  91. // Modified in DOM Level 2:
  92. void normalize();
  93. // Introduced in DOM Level 2:
  94. boolean isSupported(in DOMString feature,
  95. in DOMString version);
  96. // Introduced in DOM Level 2:
  97. readonly attribute DOMString namespaceURI;
  98. // Introduced in DOM Level 2:
  99. attribute DOMString prefix;
  100. // raises(DOMException) on setting
  101. // Introduced in DOM Level 2:
  102. readonly attribute DOMString localName;
  103. // Introduced in DOM Level 2:
  104. boolean hasAttributes();
  105. };