innerHtml property
String
get
innerHtml
Returns a fragment of HTML or XML that represents the element's contents. Can be set, to replace the contents of the element with nodes parsed from the given string.
Implementation
String get innerHtml => _innerHtml;
set
innerHtml
(String value)
Implementation
set innerHtml(String value) {
nodes.clear();
// TODO(jmesserly): should be able to get the same effect by adding the
// fragment directly.
nodes.addAll(parseFragment(value, container: localName!).nodes);
}