insertAdjacentElement method - Element class - dart:html library (original) (raw)
Element insertAdjacentElement(
Inserts element
into the DOM at the specified location.
To see the possible values for where
, read the doc forinsertAdjacentHtml.
See also:
Implementation
Element insertAdjacentElement(String where, Element element) {
if (JS('bool', '!!#.insertAdjacentElement', this)) {
_insertAdjacentElement(where, element);
} else {
_insertAdjacentNode(where, element);
}
return element;
}