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