Test handling of whitespace after doctype

Fixes #160.