Dart API ReferencehtmlNode

Interface Node

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

This corresponds to Node in the dart:dom library.

Extends

EventTarget

Subinterfaces

EntityReference, Entity, CharacterData, Element, ProcessingInstruction, Notation

Implemented by

NodeWrappingImplementation

Methods

Code Node clone(bool deep) #

Node clone(bool deep);

Code bool contains(Node otherNode) #

bool contains(Node otherNode);

Code Document get document() #

Document get document();

Code Node insertBefore(Node newChild, Node refChild) #

Node insertBefore(Node newChild, Node refChild);

Code Node get nextNode() #

Node get nextNode();

Code NodeList get nodes() #

NodeList get nodes();

Code void set nodes(value) #

void set nodes(value);

Code Node get parent() #

Node get parent();

Code Node get previousNode() #

Node get previousNode();

Code Node remove() #

Node remove();

Code Node replaceWith(Node otherNode) #

Node replaceWith(Node otherNode);

Code String get text() #

String get text();

Code void set text(String value) #

void set text(String value);

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.