Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Support form attribute on input elements #8917

Open
tjwallace opened this issue Sep 3, 2014 · 1 comment
Open

Support form attribute on input elements #8917

tjwallace opened this issue Sep 3, 2014 · 1 comment

Comments

@tjwallace
Copy link

HTML5 allows inputs to be explicitly associated to one or more forms via a form attribute.

I think this would require updating the ng-model directive to look for forms by ID if the form attribute is present on the input, otherwise follow the current logic.

This would help get around the nested form issue as well, #5858.

Example:

<form id="form1">
  <input type="text" form="form2">
</form>
<form id="form2">
  <input type="text" form="form1">
</form>

<input type="text" form="form1">
<input type="text" form="form2">
@ruifortes
Copy link

👍

evilaliv3 added a commit to globaleaks/globaleaks-whistleblowing-software that referenced this issue Apr 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants