Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify designMode corner case (w3c#83)
In w3c#74 (comment) we resolved that EditContext should be a no-op when applied to an element that is already editable due to `designMode` being set for the document. For the most part this was already true per the current spec because EditContext is a no-op when set on a node whose parent element is editable. However there was some ambiguity in the case where EditContext is set on the [documentElement](https://dom.spec.whatwg.org/#document-element). Add a specific check for that case, stating that that element won't be an EditContext editing host if the document has `designMode` set to "on". Closes w3c#74.
- Loading branch information