allow whole html document parsing

ready for review @djreimer 

I had to change "Test" to "MiniTest" in the test file to get my tests to run. (I was getting an uninitialized constant Test error.)