html: parse the head node using the new context handler logic