Haxe API Documentation
Back | Index
extern class js.html.Node
extends EventTarget
Available in js
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.
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
var nodeValue : String
Setter throws DOMException.
var ownerDocument(default,null) : Document
var parentElement(default,null) : Element
var parentNode(default,null) : Node
var prefix : String
Setter throws DOMException.
var previousSibling(default,null) : Node
var textContent : String
Setter throws DOMException.
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
static inline var ATTRIBUTE_NODE : Int
static inline var CDATA_SECTION_NODE : Int
static inline var COMMENT_NODE : Int
static inline var DOCUMENT_FRAGMENT_NODE : Int
static inline var DOCUMENT_NODE : Int
static inline var DOCUMENT_POSITION_CONTAINED_BY : Int
static inline var DOCUMENT_POSITION_CONTAINS : Int
static inline var DOCUMENT_POSITION_DISCONNECTED : Int
static inline var DOCUMENT_POSITION_FOLLOWING : Int
static inline var DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : Int
static inline var DOCUMENT_POSITION_PRECEDING : Int
static inline var DOCUMENT_TYPE_NODE : Int
static inline var ELEMENT_NODE : Int
static inline var ENTITY_NODE : Int
static inline var ENTITY_REFERENCE_NODE : Int
static inline var NOTATION_NODE : Int
static inline var PROCESSING_INSTRUCTION_NODE : Int
static inline var TEXT_NODE : Int
Back | Index