Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The set() method of the HighlightRegistry interface adds or updates a Highlight object in the registry with the specified name.
HighlightRegistry is a Map-like object, so this is similar to using Map.set().