Changed html_document to use fragments. Changed response_from_page to be an alias of html_document.
Added NodeSet comparison to possible root element in determine_root_from.