Fix doctype declaration validation