Element.outerHTML

Element[] outerHTML(string html) @property

Replaces this node with the given html string, which is parsed

Note

this invalidates the this reference, since it is removed

from the tree.

Returns the new children that replace this.

string outerHTML() @property

Returns all the html for this element, including the tag itself.

This is equivalent to calling toString().