/*
* Copyright (C)2005-2013 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
// This file is generated, do not edit!
package js.html;
/** A Node
is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly.
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): Document
, Element
, Attr
, CharacterData
(which Text
, Comment
, and CDATASection
inherit), ProcessingInstruction
, DocumentFragment
, DocumentType
, Notation
, Entity
, EntityReference
Documentation for this class was provided by MDN. */
@:native("Node")
extern class Node extends EventTarget
{
static inline var ATTRIBUTE_NODE : Int = 2;
static inline var CDATA_SECTION_NODE : Int = 4;
static inline var COMMENT_NODE : Int = 8;
static inline var DOCUMENT_FRAGMENT_NODE : Int = 11;
static inline var DOCUMENT_NODE : Int = 9;
static inline var DOCUMENT_POSITION_CONTAINED_BY : Int = 0x10;
static inline var DOCUMENT_POSITION_CONTAINS : Int = 0x08;
static inline var DOCUMENT_POSITION_DISCONNECTED : Int = 0x01;
static inline var DOCUMENT_POSITION_FOLLOWING : Int = 0x04;
static inline var DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : Int = 0x20;
static inline var DOCUMENT_POSITION_PRECEDING : Int = 0x02;
static inline var DOCUMENT_TYPE_NODE : Int = 10;
static inline var ELEMENT_NODE : Int = 1;
static inline var ENTITY_NODE : Int = 6;
static inline var ENTITY_REFERENCE_NODE : Int = 5;
static inline var NOTATION_NODE : Int = 12;
static inline var PROCESSING_INSTRUCTION_NODE : Int = 7;
static inline var TEXT_NODE : Int = 3;
var attributes(default,null) : NamedNodeMap;
var baseURI(default,null) : String;
var childNodes(default,null) : NodeList;
var firstChild(default,null) : Node;
var lastChild(default,null) : Node;
var localName(default,null) : String;
var namespaceURI(default,null) : String;
var nextSibling(default,null) : Node;
var nodeName(default,null) : String;
var nodeType(default,null) : Int;
/** Setter throws DOMException. */
var nodeValue : String;
var ownerDocument(default,null) : Document;
var parentElement(default,null) : Element;
var parentNode(default,null) : Node;
/** Setter throws DOMException. */
var prefix : String;
var previousSibling(default,null) : Node;
/** Setter throws DOMException. */
var textContent : String;
function appendChild( newChild : Node ) : Node;
function cloneNode( deep : Bool ) : Node;
function compareDocumentPosition( other : Node ) : Int;
function contains( other : Node ) : Bool;
function hasAttributes() : Bool;
function hasChildNodes() : Bool;
function insertBefore( newChild : Node, refChild : Node ) : Node;
function isDefaultNamespace( ?namespaceURI : String ) : Bool;
function isEqualNode( other : Node ) : Bool;
function isSameNode( other : Node ) : Bool;
function isSupported( feature : String, ?version : String ) : Bool;
function lookupNamespaceURI( ?prefix : String ) : String;
function lookupPrefix( ?namespaceURI : String ) : String;
function normalize() : Void;
function removeChild( oldChild : Node ) : Node;
function replaceChild( newChild : Node, oldChild : Node ) : Node;
}