Skip to content

Commit 1002730

Browse files
test: decide the spellcheck filing against the spec (#22169)
The entry stood as "a printer defect, not yet decided". It is not one: HTML reads an enumerated attribute's value as an ASCII case-insensitive match for one of its keywords, and `spellcheck` is an enumerated attribute with the keywords `true` and `false`, so `TRUE` names the True state its IDL getter reads back. Gecko matches it case-sensitively instead, which is why the fold reads as a change only there. Blink does what the spec says — `TRUE` and `TrUe` both reflect `true`, measured in Chrome 147 — and webpack's own rule for this table already excludes every attribute whose IDL hands back the case as written, which `spellcheck` does not. The reason now carries the citation so the next reader does not re-derive it.
1 parent 1043489 commit 1002730

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/specCases/syntaxEquivalence.spectest.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const FILED_ENUMERATED_FOLDS = new Map([
223223
['script fetchpriority=low: "auto" vs "low"', "webkit only: the unreflected `fetchpriority` again — see `img fetchpriority=high`"],
224224
[
225225
'* spellcheck=true: "false" vs "true"',
226-
"firefox only: a printer defect, not yet decided — HTML makes an enumerated attribute ASCII case-insensitive and Gecko does not read `spellcheck` that way, so lower-casing it turns spellchecking on where the page had it off. Measured in Firefox 156: `spellcheck=\"TRUE\"` reflects `false` and `spellcheck=\"true\"` reflects `true`; Chrome 147 reflects `true` for both"
226+
"firefox only: not a printer defect — HTML reads an enumerated attribute's value as an ASCII case-insensitive match for one of its keywords (Keywords and enumerated attributes), and `spellcheck` is one with the keywords `true` and `false`, so `TRUE` names the True state its IDL getter reads back. Gecko matches it case-sensitively instead. Measured in Firefox 156: `spellcheck=\"TRUE\"` reflects `false` and `spellcheck=\"true\"` reflects `true`; Chrome 147 reflects `true` for both, as the spec requires"
227227
]
228228
]);
229229

0 commit comments

Comments
 (0)