Updated event handler interface.
First shot at DOCTYPE parsing and testing.