{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/execcommand",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "execcommand",
    "name": "execCommand()",
    "description": "The document.execCommand() method reads and writes from the clipboard and performs editing commands on editable text, such as changing the font name or style. Related methods check whether commands are supported, enabled, or applied.",
    "group": "clipboard",
    "groupName": "Clipboard",
    "spec": "https://w3c.github.io/editing/docs/execCommand/",
    "baseline": false,
    "compatCount": 10,
    "cats": [
      "api"
    ],
    "compatKeysSample": [
      "api.Document.execCommand",
      "api.Document.execCommand.copy",
      "api.Document.execCommand.cut",
      "api.Document.execCommand.defaultParagraphSeparator",
      "api.Document.execCommand.insertBrOnReturn",
      "api.Document.queryCommandEnabled",
      "api.Document.queryCommandIndeterm",
      "api.Document.queryCommandState",
      "api.Document.queryCommandSupported",
      "api.Document.queryCommandValue"
    ],
    "s": {
      "chrome": {
        "v": "1",
        "d": 14224
      },
      "chrome_android": {
        "v": "18",
        "d": 15518
      },
      "edge": {
        "v": "12",
        "d": 16645
      },
      "firefox": {
        "v": "69",
        "d": 18142
      },
      "firefox_android": {
        "v": "79",
        "d": 18471
      },
      "safari": {
        "v": "1.3",
        "d": 12888
      },
      "safari_ios": {
        "v": "1",
        "d": 13693
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "api.Document.execCommand",
      "cat": "api",
      "mdn": "API/Document/execCommand",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "69",
          "d": 18142
        },
        "safari": {
          "v": "1.3",
          "d": 12888
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "79",
          "d": 18471
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "9",
          "d": 13319
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "From Firefox 82, nested calls are not supported (return <code>false</code>). See <a href=\"https://bugzil.la/1634262\">bug 1634262</a>.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Before Firefox 89, manipulating the content of <code>&lt;input&gt;</code> and <code>&lt;textarea&gt;</code> elements using <code>Document.execCommand()</code> commands requires workarounds (see <a href=\"https://bugzil.la/1220696\">bug 1220696</a>).",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Only supported for <a href=\"https://developer.mozilla.org/docs/Web/API/HTMLDocument\"><code>HTMLDocument</code></a>, not all <code>Document</code> objects.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        },
        {
          "t": "From Firefox for Android 82, nested calls are not supported (return <code>false</code>). See <a href=\"https://bugzil.la/1634262\">bug 1634262</a>.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "Before Firefox for Android 89, manipulating the content of <code>&lt;input&gt;</code> and <code>&lt;textarea&gt;</code> elements using <code>Document.execCommand()</code> commands requires workarounds (see <a href=\"https://bugzil.la/1220696\">bug 1220696</a>).",
          "b": [
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "api.Document.execCommand.copy",
      "cat": "api",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "chrome": {
          "v": "42",
          "d": 16539
        },
        "firefox": {
          "v": "41",
          "d": 16700
        },
        "safari": {
          "v": "10",
          "d": 17064
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "42",
          "d": 16540
        },
        "firefox_android": {
          "v": "41",
          "d": 16700
        },
        "safari_ios": {
          "v": "10",
          "d": 17057
        },
        "webview_android": {
          "v": "42",
          "d": 16540
        },
        "webview_ios": {
          "v": "10",
          "d": 17057
        },
        "samsunginternet_android": {
          "v": "4.0",
          "d": 16871
        },
        "opera": {
          "v": "29",
          "d": 16553
        },
        "opera_android": {
          "v": "29",
          "d": 16553
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "9",
          "d": 15047
        }
      }
    },
    {
      "id": "api.Document.execCommand.cut",
      "cat": "api",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "chrome": {
          "v": "42",
          "d": 16539
        },
        "firefox": {
          "v": "41",
          "d": 16700
        },
        "safari": {
          "v": "10",
          "d": 17064
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "42",
          "d": 16540
        },
        "firefox_android": {
          "v": "41",
          "d": 16700
        },
        "safari_ios": {
          "v": "10",
          "d": 17057
        },
        "webview_android": {
          "v": "42",
          "d": 16540
        },
        "webview_ios": {
          "v": "10",
          "d": 17057
        },
        "samsunginternet_android": {
          "v": "4.0",
          "d": 16871
        },
        "opera": {
          "v": "29",
          "d": 16553
        },
        "opera_android": {
          "v": "29",
          "d": 16553
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "9",
          "d": 15047
        }
      }
    },
    {
      "id": "api.Document.execCommand.defaultParagraphSeparator",
      "cat": "api",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "firefox": {
          "v": "55",
          "d": 17386
        },
        "edge": {
          "rv": "79",
          "rd": 18276
        },
        "firefox_android": {
          "v": "55",
          "d": 17386
        }
      }
    },
    {
      "id": "api.Document.execCommand.insertBrOnReturn",
      "cat": "api",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "firefox": {
          "v": "1.5",
          "d": 13116
        },
        "firefox_android": {
          "v": "4",
          "d": 15062
        }
      }
    },
    {
      "id": "api.Document.queryCommandEnabled",
      "cat": "api",
      "mdn": "API/Document/queryCommandEnabled",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "69",
          "d": 18142
        },
        "safari": {
          "v": "2",
          "d": 12902
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "79",
          "d": 18471
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "12.1",
          "d": 15664,
          "le": 1
        },
        "opera_android": {
          "v": "12.1",
          "d": 15622,
          "le": 1
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "Only supported for <a href=\"https://developer.mozilla.org/docs/Web/API/HTMLDocument\"><code>HTMLDocument</code></a>, not all <code>Document</code> objects.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        },
        {
          "t": "<code>queryCommandEnabled</code> with arguments <code>cut</code>, <code>copy</code> or <code>paste</code> would throw errors unless the script had special privileges.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "api.Document.queryCommandIndeterm",
      "cat": "api",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "69",
          "d": 18142
        },
        "safari": {
          "v": "2",
          "d": 12902
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "79",
          "d": 18471
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "15",
          "d": 15888
        },
        "opera_android": {
          "v": "14",
          "d": 15846
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "Only supported for <a href=\"https://developer.mozilla.org/docs/Web/API/HTMLDocument\"><code>HTMLDocument</code></a>, not all <code>Document</code> objects.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "api.Document.queryCommandState",
      "cat": "api",
      "mdn": "API/Document/queryCommandState",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "69",
          "d": 18142
        },
        "safari": {
          "v": "2",
          "d": 12902
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "79",
          "d": 18471
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "12.1",
          "d": 15664,
          "le": 1
        },
        "opera_android": {
          "v": "12.1",
          "d": 15622,
          "le": 1
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "Only supported for <a href=\"https://developer.mozilla.org/docs/Web/API/HTMLDocument\"><code>HTMLDocument</code></a>, not all <code>Document</code> objects.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "api.Document.queryCommandSupported",
      "cat": "api",
      "mdn": "API/Document/queryCommandSupported",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "69",
          "d": 18142
        },
        "safari": {
          "v": "2",
          "d": 12902
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "79",
          "d": 18471
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "12.1",
          "d": 15664,
          "le": 1
        },
        "opera_android": {
          "v": "12.1",
          "d": 15622,
          "le": 1
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "Only supported for <a href=\"https://developer.mozilla.org/docs/Web/API/HTMLDocument\"><code>HTMLDocument</code></a>, not all <code>Document</code> objects.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        },
        {
          "t": "The <code>\"paste\"</code> command is reported as supported when the paste feature is available even if the calling script has insufficient privileges to actually perform the action.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "api.Document.queryCommandValue",
      "cat": "api",
      "st": 4,
      "wf": "execcommand",
      "bl": false,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "69",
          "d": 18142
        },
        "safari": {
          "v": "2",
          "d": 12902
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "79",
          "d": 18471
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "12.1",
          "d": 15664,
          "le": 1
        },
        "opera_android": {
          "v": "12.1",
          "d": 15622,
          "le": 1
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "Only supported for <a href=\"https://developer.mozilla.org/docs/Web/API/HTMLDocument\"><code>HTMLDocument</code></a>, not all <code>Document</code> objects.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        }
      ]
    }
  ]
}