Handles no doctype properly

Fixes #59

/cc: @cido