Skip to content

Commit 7e65e38

Browse files
committed
[css-highlights-api] Defer to DOM for range invalidation
See #4597
1 parent 313c1b8 commit 7e65e38

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

css-highlight-api-1/Overview.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,8 @@ Range Updating and Invalidation</h3>
497497
</div>
498498

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

0 commit comments

Comments
 (0)