changed doctype-first to not process comments or spaces (follows html5 spec), fixes #82