add Doctype and selfClosing element option