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
Notes (5)
Firefox: From Firefox 82, nested calls are not supported (returnfalse). 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
| Browser | Type | Version | Release Date | Status / 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 |