tbosch / autofill-event

A polyfill to fire a change event when the browser auto fills form fields
MIT License
383 stars 53 forks source link

Return $rootElement if no parent form is found #27

Open bsweeney opened 9 years ago

bsweeney commented 9 years ago

Since input elements can be used outside of form elements it would be nice if instead of an empty object findParentForm() returned the $rootElement. As it currently stands, none of the input elements are checked if there is no parent form.