Dart API Referencedart:htmlDocumentFragment

DocumentFragment Interface

DocumentFragment has no properties or methods of its own, but inherits from Node.

A DocumentFragment is a minimal document object that has no parent. It is used as a light-weight version of document to store well-formed or potentially non-well-formed fragments of XML.

See Node for a listing of its properties, constants and methods.

Various other methods can take a document fragment as an argument (e.g., any Node interface methods such as appendChild and insertBefore), in which case the children of the fragment are appended or inserted, not the fragment itself.

Extends

Element

Subinterfaces

ShadowRoot

Constructors

Code new DocumentFragment.svg(String svg) #

DocumentFragment.svg(String svg);

Code new DocumentFragment() #

DocumentFragment();

Code new DocumentFragment.html(String html) #

DocumentFragment.html(String html);

Methods

Code DocumentFragment clone(bool deep) #

DocumentFragment clone(bool deep);

Code ElementEvents get on() #

ElementEvents get on();

Code Element $dom_querySelector(String selectors) #

Element $dom_querySelector(String selectors);

Code NodeList $dom_querySelectorAll(String selectors) #

NodeList $dom_querySelectorAll(String selectors);

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.