Skip to content

spellcheck HTMLAttribute has incorrect type #2460

Open
@MarvDann

Description

@MarvDann

Describe the bug

I tried to remove spell checking from a HTML form by applying the spellcheck='false' attribute which is a string value in the HTML spec. Solid JS expects a boolean causing a type error.
When I tried with the boolean, which satisfied the type error, it didn't apply the spell checking to the form.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck

Image

Your Example Website or App

https://stackblitz.com/edit/sb1-9nokcksg?file=src%2FApp.tsx

Steps to Reproduce the Bug or Issue

  1. Create a HTML form
  2. add the spellcheck='false' attribute
  3. See type error in code
  4. try the boolean approach like the type expects
  5. add a field to the form
  6. open app in browser
  7. See the boolean value not applied correctly in Brave browser

Expected behavior

As a user I expect to be able to use the spellcheck attribute as recommended by the HTML spec or at least it should be applied to the underlying form field correctly on render.

Screenshots or Videos

Image Image

Platform

  • OS: Windows 10
  • Browser: Brave
  • Version: 1.76.82 Chromium: 134.0.6998.178 (Official Build) (64-bit)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions