You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure whether this is a Fresh issue (@1.7.1) or upstream. preact-render-to-string@6.5.10 (latest) sort-of has the same issue, but only if you write the attr name all-lowercase in JSX, whereas Fresh has the issue even if you use camel-case (in non-island components) and only has the issue for spellCheck={false} for island components.
FWIW, TypeScript accepts both the lowercase and camel-case variants, so presumably both should be supported.
Non-island component in fresh@1.7.1
JSX
Expected
Actual
Match?
<textarea spellCheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck></textarea>
❌
<textarea spellCheck={false} />
<textarea spellcheck="false"></textarea>
<textarea></textarea>
❌
<textarea spellcheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck></textarea>
❌
<textarea spellcheck={false} />
<textarea spellcheck="false"></textarea>
<textarea></textarea>
❌
Island component in fresh@1.7.1
JSX
Expected
Actual
Match?
<textarea spellCheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck="true"></textarea>
✅
<textarea spellCheck={false} />
<textarea spellcheck="false"></textarea>
<textarea></textarea>
❌
<textarea spellcheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck="true"></textarea>
✅
<textarea spellcheck={false} />
<textarea spellcheck="false"></textarea>
<textarea spellcheck="false"></textarea>
✅
preact-render-to-string@6.5.10
JSX
Expected
Actual
Match?
<textarea spellCheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck="true"></textarea>
✅
<textarea spellCheck={false} />
<textarea spellcheck="false"></textarea>
<textarea spellcheck="false"></textarea>
✅
<textarea spellcheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck></textarea>
❌
<textarea spellcheck={false} />
<textarea spellcheck="false"></textarea>
<textarea></textarea>
❌
The text was updated successfully, but these errors were encountered:
lionel-rowe
changed the title
<textarea spellCheck={false} /> in non-island component omits spellcheck attr (should be string "false")<textarea spellCheck={false} /> omits spellcheck attr (should be string "false")
Sep 10, 2024
Not sure whether this is a Fresh issue (@1.7.1) or upstream.
preact-render-to-string@6.5.10
(latest) sort-of has the same issue, but only if you write the attr name all-lowercase in JSX, whereas Fresh has the issue even if you use camel-case (in non-island components) and only has the issue forspellCheck={false}
for island components.FWIW, TypeScript accepts both the lowercase and camel-case variants, so presumably both should be supported.
Non-island component in
fresh@1.7.1
<textarea spellCheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck></textarea>
<textarea spellCheck={false} />
<textarea spellcheck="false"></textarea>
<textarea></textarea>
<textarea spellcheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck></textarea>
<textarea spellcheck={false} />
<textarea spellcheck="false"></textarea>
<textarea></textarea>
Island component in
fresh@1.7.1
<textarea spellCheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck="true"></textarea>
<textarea spellCheck={false} />
<textarea spellcheck="false"></textarea>
<textarea></textarea>
<textarea spellcheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck="true"></textarea>
<textarea spellcheck={false} />
<textarea spellcheck="false"></textarea>
<textarea spellcheck="false"></textarea>
preact-render-to-string@6.5.10
<textarea spellCheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck="true"></textarea>
<textarea spellCheck={false} />
<textarea spellcheck="false"></textarea>
<textarea spellcheck="false"></textarea>
<textarea spellcheck={true} />
<textarea spellcheck="true"></textarea>
<textarea spellcheck></textarea>
<textarea spellcheck={false} />
<textarea spellcheck="false"></textarea>
<textarea></textarea>
The text was updated successfully, but these errors were encountered: