tree: e6694313429defae15f4e5d9427e9605658ca906 [path history] [tgz]
  1. enable-autofill-directive.js
  2. enable-autofill-spec.js
  3. index.js
  4. README.md
crowdstf/res/app/components/stf/common-ui/enable-autofill/README.md

enable-autofill

This directive enables autofill (HTML5 autocomplete) on the selected form.

Currently this is only needed in Chrome because autofill only works on form POST method.

Based on this.

Usage

<form enable-autofill action="about:blank">
	<input type="text" autocomplete="on">
</form>  

This will create the following DOM:

<iframe src="about:blank" name="_autofill" style="display:none">
<form method="post" action="about:blank" target="_autofill">
	<input type="text" autocomplete="on">
</form>  

Yes, it is a bit ugly but it is currently the only way.

It will create only one iframe which will be reused.