bugfix k_xhtp p.doc_type, rm type line if not html