Re: [w3c/webcomponents] Form autocompletion is broken when form elements are encapsulated within a Shadow DOM (#649)

The spec is pretty clear on this. Form autofill:

> A user agent prefilling a form control must not discriminate between form controls that are in a document tree and those that are connected; that is, it is not conforming to make the decision on whether or not to autofill based on whether the element's root is a shadow root versus a Document.

Implicit submit:

> A form element's default button is the first submit button in tree order whose form owner is that form element.

Form submission:

> Let controls be a list of all the submittable elements whose form owner is form, in tree order.

(Elements in the shadow tree are not in tree order.)

So, closing this, as the spec is already as clear as can be. But happy to continue discussing in the closed thread.

You may also enjoy https://github.com/w3c/webcomponents/issues/187.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/649#issuecomment-316505345

Received on Wednesday, 19 July 2017 20:22:25 UTC