Handles no doctype properly (Fixes #59)
Merge pull request #64 from existentialism/doctype-fix

Handles no doctype properly