- From: Jelle Raaijmakers <notifications@github.com>
- Date: Mon, 20 Jan 2025 15:04:49 -0800
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 20 January 2025 23:04:53 UTC
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