Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't allow Selection in nodes not in the document;
This matches the spec and Chrome, and seems to bring us closer to Edge and WebKit as well. It also matches our own behavior for addRange(), which was changed in bug 1341137. For collapse and selectAllChildren, we match the tests and browsers, but the spec is incorrect at the time of this writing: w3c/selection-api#86 The removeAllRanges test hadn't been updated for the spec change. MozReview-Commit-ID: DTK8283k5IP Upstreamed from https://bugzilla.mozilla.org/show_bug.cgi?id=1359397 [ci skip]
- Loading branch information