antonmedv/finder

Forms with input named "id" causes cssesc to break

raphaelfaria opened this issue · 1 comments

Can be tested with something like:

<form id="test">
  <input type="text" name="id">
</form>

In this case input.id in index.ts:168 will be the input element, not "test".
input.getAttribute('id') might work better.

Can you make pr?