Skip to content

Commit

Permalink
[css-highlights-api] Defer to DOM for range invalidation
Browse files Browse the repository at this point in the history
See #4597
  • Loading branch information
frivoal committed Sep 8, 2021
1 parent 313c1b8 commit 7e65e38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions css-highlight-api-1/Overview.bs
Expand Up @@ -497,9 +497,8 @@ Range Updating and Invalidation</h3>
</div>

When computing how to render a document,
if [=start node=] or [=end node=] of any [=range=]
in the [=highlight registry=] associated with that document's window
refer to a {{Node}} whose [=shadow-including root=] is not that document,
if any {{StaticRange}} in the [=highlight registry=] associated with that document's window
is not <a spec=dom for="StaticRange">valid</a>,
the user agent must ignore that [=range=].
If the [=start offset=] or [=end offset=] of any [=range=]
are greater than the corresponding node’s <a spec=dom>length</a>,
Expand Down

0 comments on commit 7e65e38

Please sign in to comment.