Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions features/execcommand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: execCommand()
description: The `execCommand()` method accesses the clipboard and performs editing commands on the document, while multiple `queryCommand*()` methods report whether commands are enabled, supported, or applied.
spec: https://w3c.github.io/editing/docs/execCommand/
group: clipboard
discouraged:
according_to:
- https://w3c.github.io/editing/docs/execCommand/
alternatives:
- async-clipboard
- contenteditable
compat_features:
- 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
54 changes: 54 additions & 0 deletions features/execcommand.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Generated from: execcommand.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
firefox: "69"
firefox_android: "79"
compat_features:
# baseline: false
# support:
# chrome: "1"
# chrome_android: "18"
# edge: "12"
# firefox: "69"
# firefox_android: "79"
# safari: "1.3"
# safari_ios: "1"
- api.Document.execCommand

# baseline: false
# support:
# chrome: "1"
# chrome_android: "18"
# edge: "12"
# firefox: "69"
# firefox_android: "79"
# safari: "2"
# safari_ios: "1"
- api.Document.queryCommandEnabled
- api.Document.queryCommandIndeterm
- api.Document.queryCommandState
- api.Document.queryCommandSupported
- api.Document.queryCommandValue

# baseline: false
# support:
# chrome: "42"
# chrome_android: "42"
# edge: "12"
# firefox: "69"
# firefox_android: "79"
# safari: "10"
# safari_ios: "10"
- api.Document.execCommand.copy
- api.Document.execCommand.cut

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# firefox: "69"
# firefox_android: "79"
- api.Document.execCommand.defaultParagraphSeparator
- api.Document.execCommand.insertBrOnReturn
4 changes: 4 additions & 0 deletions scripts/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ const defaultAllowlist: allowlistItem[] = [
[
"https://www.w3.org/TR/DOM-Level-2-Style/",
"Allowed because the css-object-model-discouraged feature points to it."
],
[
"https://w3c.github.io/editing/docs/execCommand/",
"Allowed because the execCommand feature points to it, to inform users that the feature is obsolete. The spec exists in a draft state only and will never move out of draft. It serves as a reference."
]
];

Expand Down