Right now, I turn off the spellcheck for HTML controls in the website with spellcheck="false"
. Instead of setting the attribute one at a time for every control, how can I make it work for all controls in the entire website?
An example of a control where the spell check error is shown:
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck:
The spellcheck global attribute is an enumerated attribute that defines whether the element may be checked for spelling errors.
As a global attribute, it can be set on any element. Although not all global attributes have an effect on all elements, setting spellcheck="false"
for any element, appears to disable it for all descendants as well.
So you can put it on body
here, and should have it off for all your content (unless explicitly specified otherwise further down the DOM tree.)