Node.hx 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Copyright (C)2005-2015 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 from mozilla/Node.webidl line 16:0. Do not edit!
  23. package js.html;
  24. @:native("Node")
  25. extern class Node extends EventTarget
  26. {
  27. static inline var ELEMENT_NODE : Int = 1;
  28. static inline var ATTRIBUTE_NODE : Int = 2;
  29. static inline var TEXT_NODE : Int = 3;
  30. static inline var CDATA_SECTION_NODE : Int = 4;
  31. static inline var ENTITY_REFERENCE_NODE : Int = 5;
  32. static inline var ENTITY_NODE : Int = 6;
  33. static inline var PROCESSING_INSTRUCTION_NODE : Int = 7;
  34. static inline var COMMENT_NODE : Int = 8;
  35. static inline var DOCUMENT_NODE : Int = 9;
  36. static inline var DOCUMENT_TYPE_NODE : Int = 10;
  37. static inline var DOCUMENT_FRAGMENT_NODE : Int = 11;
  38. static inline var NOTATION_NODE : Int = 12;
  39. static inline var DOCUMENT_POSITION_DISCONNECTED : Int = 1;
  40. static inline var DOCUMENT_POSITION_PRECEDING : Int = 2;
  41. static inline var DOCUMENT_POSITION_FOLLOWING : Int = 4;
  42. static inline var DOCUMENT_POSITION_CONTAINS : Int = 8;
  43. static inline var DOCUMENT_POSITION_CONTAINED_BY : Int = 16;
  44. static inline var DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : Int = 32;
  45. var nodeType(default,null) : Int;
  46. var nodeName(default,null) : String;
  47. var baseURI(default,null) : String;
  48. var ownerDocument(default,null) : HTMLDocument;
  49. var parentNode(default,null) : Node;
  50. var parentElement(default,null) : Element;
  51. var childNodes(default,null) : NodeList;
  52. var firstChild(default,null) : Node;
  53. var lastChild(default,null) : Node;
  54. var previousSibling(default,null) : Node;
  55. var nextSibling(default,null) : Node;
  56. var nodeValue : String;
  57. var textContent : String;
  58. var namespaceURI(default,null) : String;
  59. var prefix(default,null) : String;
  60. var localName(default,null) : String;
  61. function hasChildNodes() : Bool;
  62. /** @throws DOMError */
  63. function insertBefore( node : Node, child : Node ) : Node;
  64. /** @throws DOMError */
  65. function appendChild( node : Node ) : Node;
  66. /** @throws DOMError */
  67. function replaceChild( node : Node, child : Node ) : Node;
  68. /** @throws DOMError */
  69. function removeChild( child : Node ) : Node;
  70. function normalize() : Void;
  71. /** @throws DOMError */
  72. function cloneNode( ?deep : Bool = false ) : Node;
  73. function isEqualNode( node : Node ) : Bool;
  74. function compareDocumentPosition( other : Node ) : Int;
  75. function contains( other : Node ) : Bool;
  76. function lookupPrefix( namespace_ : String ) : String;
  77. function lookupNamespaceURI( prefix : String ) : String;
  78. function isDefaultNamespace( namespace_ : String ) : Bool;
  79. }