Node.hx 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * Copyright (C)2005-2013 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated, do not edit!
  23. package js.html;
  24. /** A <code>Node</code> is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly.<br> The following all inherit this interface and its methods and properties (though they may return null in particular cases where not relevant; or throw an exception when adding children to a node type for which no children can exist): <code><a rel="custom" href="https://developer.mozilla.org/en/DOM/Document">Document</a></code>
  25. , <code><a rel="custom" href="https://developer.mozilla.org/en/DOM/Element">Element</a></code>
  26. , <code><a rel="custom" href="/api/js/html/Attr">Attr</a></code>
  27. , <code><a rel="custom" href="https://developer.mozilla.org/en/DOM/CharacterData">CharacterData</a></code>
  28. (which <code><a rel="custom" href="/api/js/html/Text">Text</a></code>
  29. , <code><a rel="custom" href="/api/js/html/Comment">Comment</a></code>
  30. , and <code><a rel="custom" href="/api/js/html/CDATASection">CDATASection</a></code>
  31. inherit), <code><a rel="custom" href="/api/js/html/ProcessingInstruction">ProcessingInstruction</a></code>
  32. , <code><a rel="custom" href="/api/js/html/DocumentFragment">DocumentFragment</a></code>
  33. , <code><a rel="custom" href="/api/js/html/DocumentType">DocumentType</a></code>
  34. , <code><a rel="custom" href="/api/js/html/Notation">Notation</a></code>
  35. , <code><a rel="custom" href="/api/js/html/Entity">Entity</a></code>
  36. , <code><a rel="custom" href="/api/js/html/EntityReference">EntityReference</a></code><br><br>
  37. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/Node">MDN</a>. */
  38. @:native("Node")
  39. extern class Node extends EventTarget
  40. {
  41. static inline var ATTRIBUTE_NODE : Int = 2;
  42. static inline var CDATA_SECTION_NODE : Int = 4;
  43. static inline var COMMENT_NODE : Int = 8;
  44. static inline var DOCUMENT_FRAGMENT_NODE : Int = 11;
  45. static inline var DOCUMENT_NODE : Int = 9;
  46. static inline var DOCUMENT_POSITION_CONTAINED_BY : Int = 0x10;
  47. static inline var DOCUMENT_POSITION_CONTAINS : Int = 0x08;
  48. static inline var DOCUMENT_POSITION_DISCONNECTED : Int = 0x01;
  49. static inline var DOCUMENT_POSITION_FOLLOWING : Int = 0x04;
  50. static inline var DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : Int = 0x20;
  51. static inline var DOCUMENT_POSITION_PRECEDING : Int = 0x02;
  52. static inline var DOCUMENT_TYPE_NODE : Int = 10;
  53. static inline var ELEMENT_NODE : Int = 1;
  54. static inline var ENTITY_NODE : Int = 6;
  55. static inline var ENTITY_REFERENCE_NODE : Int = 5;
  56. static inline var NOTATION_NODE : Int = 12;
  57. static inline var PROCESSING_INSTRUCTION_NODE : Int = 7;
  58. static inline var TEXT_NODE : Int = 3;
  59. var attributes(default,null) : NamedNodeMap;
  60. var baseURI(default,null) : String;
  61. var childNodes(default,null) : NodeList;
  62. var firstChild(default,null) : Node;
  63. var lastChild(default,null) : Node;
  64. var localName(default,null) : String;
  65. var namespaceURI(default,null) : String;
  66. var nextSibling(default,null) : Node;
  67. var nodeName(default,null) : String;
  68. var nodeType(default,null) : Int;
  69. /** Setter throws DOMException. */
  70. var nodeValue : String;
  71. var ownerDocument(default,null) : Document;
  72. var parentElement(default,null) : Element;
  73. var parentNode(default,null) : Node;
  74. /** Setter throws DOMException. */
  75. var prefix : String;
  76. var previousSibling(default,null) : Node;
  77. /** Setter throws DOMException. */
  78. var textContent : String;
  79. function appendChild( newChild : Node ) : Node;
  80. function cloneNode( deep : Bool ) : Node;
  81. function compareDocumentPosition( other : Node ) : Int;
  82. function contains( other : Node ) : Bool;
  83. function hasAttributes() : Bool;
  84. function hasChildNodes() : Bool;
  85. function insertBefore( newChild : Node, refChild : Node ) : Node;
  86. function isDefaultNamespace( ?namespaceURI : String ) : Bool;
  87. function isEqualNode( other : Node ) : Bool;
  88. function isSameNode( other : Node ) : Bool;
  89. function isSupported( feature : String, ?version : String ) : Bool;
  90. function lookupNamespaceURI( ?prefix : String ) : String;
  91. function lookupPrefix( ?namespaceURI : String ) : String;
  92. function normalize() : Void;
  93. function removeChild( oldChild : Node ) : Node;
  94. function replaceChild( newChild : Node, oldChild : Node ) : Node;
  95. }