Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The type
property of the Highlight
interface is an enumerated String
used to specify the meaning of the highlight. This allows assistive technologies, such as screen readers, to include this meaning when exposing the highlight to users.
By default, a highlight object will have its type set to highlight
, but you can change it to spelling-error
or grammar-error
.