[w3c/editing] `selectAll` command should be disabled if no selection exists on the context object (Issue #475)

The spec for `queryCommandEnabled` [states](https://github.com/w3c/editing/blob/b9fbe88d2319c5667a008804c2364023ce4ccec0/docs/execCommand/index.html#L589-L592) that all commands in the Miscellaneous section are always enabled. However, the steps for `selectAll` require that `document.getSelection()` does not return `null`. My suggestion is to disable the command whenever there is no selection available to work with.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/475
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/475@github.com>

Received on Monday, 20 January 2025 23:04:53 UTC