Doctype conditional update