Skip to content

Commit c47bc7b

Browse files
dandclarkfrivoal
authored andcommitted
Restore check that range is in same document as the HighlightRegistry
1 parent 4dd8efa commit c47bc7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

css-highlight-api-1/Overview.bs

+5-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,11 @@ Range Updating and Invalidation</h3>
507507
</div>
508508

509509
When computing how to render a document,
510-
if any {{StaticRange}} in the [=highlight registry=] associated with that document's window
510+
if [=start node=] or [=end node=] of any [=range=]
511+
in the [=highlight registry=] associated with that document's window
512+
refer to a {{Node}} whose [=shadow-including root=] is not that document,
513+
the user agent must ignore that [=range=].
514+
If any {{StaticRange}} in the [=highlight registry=] associated with that document's window
511515
is not <a spec=dom for="StaticRange">valid</a>,
512516
the user agent must ignore that [=range=].
513517

0 commit comments

Comments
 (0)