make the write test fail by adding a doctype
handle doctype events, all tests pass again yay
1.5.1