Open chrishsu opened 7 years ago
From https://www.w3.org/TR/html5/forms.html#association-of-controls-and-forms,
A form-associated element is, by default, associated with its nearest ancestor form element (as described below), but, if it is reassociateable, may have a form attribute specified to override this.
This would seem to imply that the inner form should be it's parent.
Description
https://github.com/PolymerElements/iron-form/blob/master/iron-form.html#L349
Expected outcome
Either the first form which gets the
iron-form-element-register
event should be the parentForm or there should be an array of parentForm's.Actual outcome
The last form which gets the
iron-form-element-register
event becomes the parent form.Steps to reproduce
input._parentForm === outer
Browsers Affected
Chrome for sure.