Reputation: 852
for performance reasons I'd like to use the insertAdjacentText
-method, but I don't know if it is ECMAScript- (JavaScript)-standard.
Upvotes: 1
Views: 364
Reputation: 944527
No. Nothing related to the DOM is defined by ECMAScript.
insertAdjacentText
is defined by the WHATWG DOM Living Standard.
It is supported by all current, major browsers.
Upvotes: 0
Reputation: 852
EDIT
insertAdjacentText
is now supported by all browsers after Firefox 47.
Ref: https://caniuse.com/#search=insertAdjacentText
Original
According to dottoro.com it is not supported by Firefox, but only by the other major browsers, shall might be the reason why there is no entry in the MDN-documentation.
I only found an entry on the Microsoft Developer Network documentation for this feature.
So regardless whether it's standard or not, one might use insertAdjacentHTML instead, because it is supported by all major browsers.
Upvotes: 1