Add failing test. Incorrect results when doctype exists.
passing the doctype test
even more passing doctypes