Revert implementation of HTML5 spec rev 2730 per IRC discussion with Hixie

This commit is contained in:
Henri Sivonen 2009-03-16 17:40:59 +02:00
parent 167cf2e297
commit e3e8dd01f6

View File

@ -2448,8 +2448,6 @@ nsHtml5TreeBuilder::endTag(nsHtml5ElementName* elementName)
}
case NS_HTML5TREE_BUILDER_BEFORE_HEAD: {
switch(group) {
case NS_HTML5TREE_BUILDER_HTML:
case NS_HTML5TREE_BUILDER_BODY:
case NS_HTML5TREE_BUILDER_HEAD:
case NS_HTML5TREE_BUILDER_BR: {
appendToCurrentNodeAndPushHeadElement(nsHtml5HtmlAttributes::EMPTY_ATTRIBUTES);
@ -2469,8 +2467,6 @@ nsHtml5TreeBuilder::endTag(nsHtml5ElementName* elementName)
mode = NS_HTML5TREE_BUILDER_AFTER_HEAD;
goto endtagloop_end;
}
case NS_HTML5TREE_BUILDER_BODY:
case NS_HTML5TREE_BUILDER_HTML:
case NS_HTML5TREE_BUILDER_BR: {
pop();
mode = NS_HTML5TREE_BUILDER_AFTER_HEAD;
@ -2503,8 +2499,6 @@ nsHtml5TreeBuilder::endTag(nsHtml5ElementName* elementName)
}
case NS_HTML5TREE_BUILDER_AFTER_HEAD: {
switch(group) {
case NS_HTML5TREE_BUILDER_HTML:
case NS_HTML5TREE_BUILDER_BODY:
case NS_HTML5TREE_BUILDER_BR: {
appendToCurrentNodeAndPushBodyElement();
mode = NS_HTML5TREE_BUILDER_FRAMESET_OK;