outerHtml property

String outerHtml

Returns a fragment of HTML or XML that represents the element and its contents.

Implementation

// TODO(jmesserly): this API is not specified in:
// <http://domparsing.spec.whatwg.org/> nor is it in dart:html, instead
// only Element has outerHtml. However it is quite useful. Should we move it
// to dom_parsing, where we keep other custom APIs?
String get outerHtml => _outerHtml;