Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow form controls in a shadow root to participate in it's host form submission #10852

Open
KonnorRogers opened this issue Dec 11, 2024 · 0 comments
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: shadow Relates to shadow trees (as defined in DOM)

Comments

@KonnorRogers
Copy link

KonnorRogers commented Dec 11, 2024

What problem are you trying to solve?

A way to allow for custom elements with a DSD to participate in form submissions prior to JavaScript loading allowing for "Progressive Enhancement"

What solutions exist today?

The only one im aware of is rendering the form control in the light DOM, and then when the custom elements loads, swapping focus / values / et al onto the shadow DOM form control.

How would you solve it?

I'm not sure.

The 2 ideas are either a declarative way to "hoist" shadow dom form controls.

Or some way to decoratively define form association on DSD template

Anything else?

I don't expect this to cover every possible use case. Ideally it covers simple things like an <input> in the shadow dom of a custom element with a DSD.

@KonnorRogers KonnorRogers added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest labels Dec 11, 2024
@annevk annevk added the topic: shadow Relates to shadow trees (as defined in DOM) label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: shadow Relates to shadow trees (as defined in DOM)
Development

No branches or pull requests

2 participants