Fix breakage from 400b989d

Make sure to check whether lastIndex changed, and don't match anything in
SIMPLETAG / SIMPLEATTR.

This broke Parsoid parser tests, but was not caught by the domino test suite.
This suggests a gap in test coverage.

TODO:
Add tests for this, or use a bigger HTML5 parser test suite.