sarahavilov / autofillforms-e10s

A multi browser extension that enables you to fill out web forms with one click
https://webextension.org/listing/autofill-forms.html
57 stars 39 forks source link

Match on labels as well as element names #38

Open benshep opened 6 years ago

benshep commented 6 years ago

The code for a form often looks like:

<label for="form_field_1">Enter your name</label>
<input id="form_field_1" name="something_unhelpful" type="text">

Could you make the regexp match on the text inside label? The for attribute makes it obvious which form field it's referring to. The name of the input field is often something not particularly useful for matching.