Incorrect results when doctype exists.

Just a failing test.