DOM
SourceThe lastElementChild
getter steps are to return
the last child that is an element; otherwise null.
In all current engines.
Firefox25+Safari9+Chrome29+ Opera16+Edge79+ Edge (Legacy)17+IENone Firefox for Android25+iOS Safari9+Chrome for Android29+Android WebView37+Samsung Internet2.0+Opera Mobile16+
DocumentFragment/childElementCount
In all current engines.
Firefox25+Safari9+Chrome29+ Opera16+Edge79+ Edge (Legacy)17+IENone Firefox for Android25+iOS Safari9+Chrome for Android29+Android WebView37+Samsung Internet2.0+Opera Mobile16+
In all current engines.
Firefox3.5+Safari4+Chrome1+ Opera10+Edge79+ Edge (Legacy)12+IE9+ Firefox for Android4+iOS Safari3+Chrome for Android18+Android WebView1+Samsung Internet1.0+Opera Mobile10.1+
The childElementCount
getter steps are to return
the number of children of this that are elements.
The prepend(nodes)
method steps are:
The append(nodes)
method steps are:
The replaceChildren(nodes)
method steps
are:
In all current engines.
Firefox3.5+Safari3.1+Chrome1+ Opera10+Edge79+ Edge (Legacy)12+IE9+ Firefox for Android4+iOS Safari2+Chrome for Android18+Android WebView1+Samsung Internet1.0+Opera Mobile10.1+
The querySelector(selectors)
method
steps are to return the first result of running scope-match a selectors string selectors against this, if the result is not an empty list; otherwise null.
In all current engines.
Firefox3.5+Safari3.1+Chrome1+ Opera10+Edge79+ Edge (Legacy)12+IE9+ Firefox for Android4+iOS Safari2+Chrome for Android18+Android WebView1+Samsung Internet1.0+Opera Mobile10.1+
In all current engines.
Firefox3.5+Safari3.1+Chrome1+ Opera10+Edge79+ Edge (Legacy)12+IE9+ Firefox for Android4+iOS Safari2+Chrome for Android18+Android WebView1+Samsung Internet1.0+Opera Mobile10.1+
In all current engines.
Firefox3.5+Safari3.1+Chrome1+ Opera10+Edge79+ Edge (Legacy)12+IE9+ Firefox for Android4+iOS Safari2+Chrome for Android18+Android WebView1+Samsung Internet1.0+Opera Mobile10.1+
The querySelectorAll(selectors)
method
steps are to return the static result of running scope-match a selectors string selectors against this.
Web compatibility prevents the previousElementSibling
and nextElementSibling
attributes from being exposed on doctypes (and therefore on ChildNode
).
interface mixin NonDocumentTypeChildNode
{ readonly attribute Element? previousElementSibling; readonly attribute Element? nextElementSibling;
};
Element includes NonDocumentTypeChildNode;
CharacterData includes NonDocumentTypeChildNode;
element = node . previousElementSibling
Returns the first preceding sibling that is an element; otherwise null. element = node . nextElementSibling
Returns the first following sibling that is an element; otherwise null.