Forms with input named "id" causes cssesc to break
raphaelfaria opened this issue · 1 comments
raphaelfaria commented
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.
antonmedv commented
Can you make pr?