[draft] Spell check custom dictionary#12590
Draft
bkardell wants to merge 5 commits into
Draft
Conversation
Introduces a per-document custom spelling exemption list that allows pages (in a SecureContext) to add or remove words from the UA's spell checker so those words are not flagged as misspelled. - Defines the `concept-custom-spelling-exemptions` ordered set on each Document - Adds the `SpellCheckCustomDictionary` interface with `addWords()` and `removeWords()` - Exposes `window.spellCheckDictionary` [SecureContext, SameObject] - Specifies that UAs without spell checking support must not expose the attribute, preserving `if (window.spellCheckDictionary)` as a reliable feature-detection pattern Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Introduces a per-document custom spelling exemption list that allows pages (in a SecureContext) to add or remove words from the UA's spell checker so those words are not flagged as misspelled. - Defines the `concept-custom-spelling-exemptions` ordered set on each Document - Adds the `SpellCheckCustomDictionary` interface with `addWords()` and `removeWords()` - Exposes `window.spellCheckDictionary` as `[SecureContext, SameObject]` on Window - Matching is case-sensitive, since the primary use cases are proper nouns, brand names, and acronyms where casing is part of the word's identity - Specifies that UAs without spell checking support must not expose the attribute, preserving `if (window.spellCheckDictionary)` as a reliable feature-detection pattern Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
bkardell
marked this pull request as draft
June 17, 2026 09:07
Member
|
cc @whatwg/i18n @whatwg/a11y |
This was referenced Jun 17, 2026
|
Chromium implementation bug: https://issues.chromium.org/issues/428005649 |
Member
on first reading, I don't have any accessibility concerns with this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add initial draft for supporting spell check custom dictionary (currently stage 1)
(See WHATWG Working Mode: Changes for more details.)
/index.html ( diff )
/interaction.html ( diff )
/nav-history-apis.html ( diff )