Bug 784: Add html_context->doc_cp and parse attributes with it.