Skip to content

Missing plaintext-only type for contenteditable attribute. #9181

@KaiErikNiermann

Description

@KaiErikNiermann

Describe the bug

In the type definitions for Svelte HTML the type of contenteditable is missing plaintext-only. This raises an obvious type error when trying to use it and can be fixed by adding 'plaintext-only' to the types. Its not yet supported in all browsers and relativley new so I can understand if its not been included for those reasons. Just a very mild annoyance. If this should be added I can quickly PR.

Reproduction

Cannot reproduce in REPL as it does not use TS.

Logs

Type '"plaintext-only"' is not assignable to type '"inherit" | Booleanish | null | undefined'.

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
    Memory: 5.14 GB / 7.72 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 19.7.0 - /usr/local/bin/node
    npm: 9.8.1 - /usr/local/bin/npm
    pnpm: 8.6.9 - ~/.local/share/pnpm/pnpm
  Browsers:
    Chrome: 116.0.5845.140

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA small, encapsulated issue, ideal for a new contributor to Svelte to tackle.types / typescript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions