Skip to content

Conversation

@Rican7
Copy link
Contributor

@Rican7 Rican7 commented Jan 23, 2025

This PR is a follow-up to #15083, in an attempt to further correct the issue in #15082, by expanding HTML element boolean attribute support, especially when the HTML attributes casing don't match the DOM property (IDL attribute) casing.

The following attribute support has been added:

... and the following attribute support has been improved (case mapping):

Added:
 - `defer`
 - `disablepictureinpicture`
 - `disableremoteplayback`

Improved:
 - `allowfullscreen`
 - `novalidate`
JSDOM lacks support for some attributes, so we'll skip it for now.

See:
 - `async`: jsdom/jsdom#1564
 - `nomodule`: jsdom/jsdom#2475
 - `autofocus`: jsdom/jsdom#3041
 - `inert`: jsdom/jsdom#3605
 - etc...: jestjs/jest#139 (comment)
@github-actions
Copy link
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@15095

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@dummdidumm dummdidumm merged commit d47f4f5 into sveltejs:main Jan 23, 2025
10 checks passed
@Rican7 Rican7 deleted the bugfix/fix-boolean-attributes branch January 23, 2025 07:56
@Rican7
Copy link
Contributor Author

Rican7 commented Jan 23, 2025

Thank you!

This was referenced Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants