Skip to content

Conversation

@RandomFads
Copy link
Contributor

Because the TypeScript definition for the wrap attribute of the textarea element doesn't explicitly mention the off value, a code problem is generated despite the major browsers not having any issue with the non-standard attribute value.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea#wrap

image
@changeset-bot
Copy link

changeset-bot bot commented Dec 7, 2025

🦋 Changeset detected

Latest commit: 55f493d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2025

Playground

pnpm add https://pkg.pr.new/svelte@17326 
@jasonlyu123
Copy link
Member

MDN mark this value as "non-standard", and the HTML spec only mentions "hard" and "soft". We usually won't add non-standard/experimental features to the type definition unless they're widely used.

@Rich-Harris
Copy link
Member

Agree that in general we should be wary of adding non-standard things, but given that this is supported by all major browsers I think it's reasonable to allow it

@Rich-Harris Rich-Harris merged commit 6ae3e90 into sveltejs:main Dec 8, 2025
1 of 2 checks passed
@github-actions github-actions bot mentioned this pull request Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants