dart:html
DocumentFragment class
- Inheritance
- Implemented types
-
- Implementers
- Annotations
- @Native("DocumentFragment")
Constructors
- DocumentFragment()
factory
- DocumentFragment.html(String html, { NodeValidator validator, NodeTreeSanitizer treeSanitizer })
factory
- DocumentFragment.svg(String svgContent, { NodeValidator validator, NodeTreeSanitizer treeSanitizer })
factory
Properties
- children ↔ List<Element>
read / write
- innerHtml ↔ String
read / write
- baseUri → String
@JSName('baseURI'), final, inherited
- childNodes → List<Node>
@Creates('NodeList'), @Returns('NodeList'), final, inherited
- A list of this node's children. [...]
- firstChild → Node
final, inherited
- The first child of this node. [...]
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- isConnected → bool
final, inherited
- lastChild → Node
final, inherited
- The last child of this node. [...]
- nextNode → Node
@JSName('nextSibling'), final, inherited
- The next sibling node. [...]
- nodeName → String
final, inherited
- The name of this node. [...]
- nodes ↔ List<Node>
read / write, inherited
- A modifiable list of this node's children.
- nodeType → int
final, inherited
- The type of node. [...]
- nodeValue → String
final, inherited
- The value of this node. [...]
- on → Events
read-only, inherited
- This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- ownerDocument → Document
final, inherited
- The document this node belongs to. [...]
- parent → Element
@JSName('parentElement'), final, inherited
- The parent element of this node. [...]
- parentNode → Node
final, inherited
- The parent node of this node. [...]
- previousNode → Node
@JSName('previousSibling'), final, inherited
- The previous sibling node. [...]
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
- text ↔ String
@JSName('textContent'), read / write, inherited
- All text within this node and its descendents. [...]
Methods
- appendHtml(String text, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void
- Parses the specified text as HTML and adds the resulting node after the last child of this document fragment.
- appendText(String text) → void
- Adds the specified text as a text node after the last child of this document fragment.
- getElementById(String elementId) → Element
override
- querySelector(String selectors) → Element
override
- Finds the first descendant element of this document fragment that matches the specified group of selectors. [...]
- querySelectorAll<T extends Element>(String selectors) → ElementList<T>
- Finds all descendant elements of this document fragment that match the specified group of selectors. [...]
- setInnerHtml(String html, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void
- addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
- append(Node node) → Node
@JSName('appendChild'), inherited
- Adds a node to the end of the child nodes list of this node. [...]
- clone(bool deep) → Node
@JSName('cloneNode'), inherited
- Returns a copy of this node. [...]
- contains(Node other) → bool
inherited
- Returns true if this node contains the specified node. [...]
- dispatchEvent(Event event) → bool
inherited
- getRootNode([Map options ]) → Node
inherited
- hasChildNodes() → bool
inherited
- Returns true if this node has any children. [...]
- insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
inherited
- Inserts all of the nodes into this node directly before refChild. [...]
- insertBefore(Node node, Node child) → Node
inherited
- Inserts all of the nodes into this node directly before refChild. [...]
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed. [...]
- remove() → void
inherited
- Removes this node from the DOM.
- removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
- replaceWith(Node otherNode) → Node
inherited
- Replaces this node with another node.
- toString() → String
inherited
- Print out a String representation of this Node.
Operators
- operator ==(dynamic other) → bool
inherited
- The equality operator. [...]