31 ms·
I tried Web Components to create a `<passkey>` element to allow Passkey support in forms without having to write javascript as an end-user. I ran into https://
by arianvanp 8mo ago
I tried Web Components to create a `<passkey>` element to allow Passkey support in forms without having to write javascript as an end-user.
I ran into https://github.com/WICG/webcomponents/issues/814 https://github.com/WICG/webcomponents/issues/814
As long as this is not fixed I can't take Web Components seriously.
- cpburns2009 8mo agoWhy would you want your face to submit a form? How could it even be selected by default? Is this an April Fools joke?
- arianvanp 8mo agoSay you want to have a custom button element. You cant give it a `type=submit` whilst you can set that on <input> and <button> Also if you have a face that wraps a button of type submit. The submit doesn't propagate due to shadow dom
- cpburns2009 8mo agoDoes "face" have some sort of special meaning in this context? I thought it might be related an open web implementation of Face ID.
- JimDabell 8mo agoFrom the title of the issue: “Form-associated custom elements”. They are talking about the mechanism by which a custom element can have its value included when you submit a form. Here’s the spec.: https://html.spec.whatwg.org/multipage/custom-elements.html#form-associated-custom-element https://html.spec.whatwg.org/multipage/custom-elements.html#... https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#association-of-controls-and-forms https://html.spec.whatwg.org/multipage/form-control-infrastr... https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constructing-form-data-set https://html.spec.whatwg.org/multipage/form-control-infrastr...