Moved some test functionality into more isolated places, so that when HTMLElement.fromString() fails, it fails during the test, rather than while the test runner is building up the test suite.
Moved some test functionality into more isolated places, so that when
HTMLElement.fromString() fails, it fails during the test, rather than
while the test runner is building up the test suite.

Eagerod/html-cruncher,Eagerod/html-cruncher