Limited DOM API

api.Document.execCommand

Granular MDN Browser Compat Data support history across 14 tracked browsers.

Specification Area
DOM API
Deprecated
First Core Launch
Safari 1.3
2005-04-15
Core-3 Stability
5,254d (14.4y)
Last: Firefox (2019-09-03)
Baseline Feature
Limited / Unmapped
execCommand()

Browser Support Timeline

Internet Explorer v4 (1997-09-30) Safari v1.3 (2005-04-15) Opera v9 (2006-06-20) Safari on iOS v1 (2007-06-29) WebView on iOS v1 (2007-06-29) Chrome v1 (2008-12-11) Opera Android v10.1 (2010-11-09) Chrome Android v18 (2012-06-27) Samsung Browser v1.0 (2013-04-27) WebView Android v4.4 (2013-12-09) Edge v12 (2015-07-29) Quest Browser v5.0 (2018-07-01) Firefox v69 (2019-09-03) Firefox for Android v79 (2020-07-28)
Green dot marks the first browser release (1997-09-30); blue dots show subsequent browser launches (+8337d total span).
Notes (5)Firefox: From Firefox 82, nested calls are not supported (return false). See bug 1634262.Firefox: Before Firefox 89, manipulating the content of <input> and <textarea> elements using Document.execCommand() commands requires workarounds (see bug 1220696).Firefox, FF And: Only supported for HTMLDocument, not all Document objects.FF And: From Firefox for Android 82, nested calls are not supported (return false). See bug 1634262.FF And: Before Firefox for Android 89, manipulating the content of <input> and <textarea> elements using Document.execCommand() commands requires workarounds (see bug 1220696).

Full Browser Compatibility Table

BrowserTypeVersionRelease DateStatus / Caveats
Chrome desktop 1 2008-12-11 Supported
Firefox desktop 69 2019-09-03 Supported
Safari desktop 1.3 2005-04-15 Supported
Edge desktop 12 2015-07-29 Supported
Chrome Android mobile 18 2012-06-27 Supported
Firefox for Android mobile 79 2020-07-28 Supported
Safari on iOS mobile 1 2007-06-29 Supported
WebView Android mobile 4.4 2013-12-09 Supported
WebView on iOS mobile 1 2007-06-29 Supported
Samsung Browser mobile 1.0 2013-04-27 Supported
Opera desktop 9 2006-06-20 Supported
Opera Android mobile 10.1 2010-11-09 Supported
Deno server — — —
Node.js server — — —
Bun server — — —
Quest Browser xr 5.0 2018-07-01 Supported
Internet Explorer desktop 4 1997-09-30 Supported