Documentation
¶
Overview ¶
Package spellcheck defines the Spellcheck type and its predefined values.
Controls browser spell-checking and text correction features. Affects whether browsers highlight misspelled words and provide correction suggestions for text input.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // True Enable spell-checking for element content. Browser will highlight misspelled words // and provide correction suggestions. Improves text quality for user-generated content. True = Spellcheck("true") // False Disable spell-checking for element content. No spelling corrections or highlights // are provided. Useful for technical terms, code, names, or specialized vocabulary. False = Spellcheck("false") )
Variables for Spellcheck values
Functions ¶
This section is empty.
Types ¶
type Spellcheck ¶
type Spellcheck []byte
Spellcheck is a typed value for the HTML spellcheck attribute.
Controls browser spell-checking and text correction features. Affects whether browsers highlight misspelled words and provide correction suggestions for text input.
func Custom ¶
func Custom(value string) Spellcheck
Custom allows setting a custom Spellcheck value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.