autofillforms-e10s icon indicating copy to clipboard operation
autofillforms-e10s copied to clipboard

Match on labels as well as element names

Open benshep opened this issue 7 years ago • 0 comments

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.

benshep avatar Oct 06 '17 10:10 benshep