Fix breakage from 400b989d

Make sure to check whether lastIndex changed, and don't match any char in
SIMPLETAG / SIMPLEATTR regexp.

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.