Fix two issues:
1) Matches was not able to locate an element by ID because "#" was missing.
2) Type cast to make sure min/max/minlength/maxlength use numeric comparison.