Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The clear()
method of the Highlight
interface removes all the Range
objects from a Highlight
object.
Highlight
is a Set
-like object, so this is similar to using Set.clear()
.