Adding ability to apply edits and compare resulting DOM in test.
This was an attempt to use a real HTML document for comparison.

I decided to try turning a SimpleDOM into a real HTMLDocument
and then compare that to the modified SimpleDOM after applying
edits. This turned out to be harder, though, because whitespace
text nodes appeared to be ignored during the DOM creation.
All tests pass. Added some documentation.
Address review comments.