(Block::layOut): Clean up
(HTMLParser::parseFragment): Fix bugs

Keep the context element in HTMLParser since the context element might be
used later with resetInsertionMode while parsing.

(HTMLParser::resetInsertionMode): Refine