Bug 822776 - Update "after after frameset" insertion mode. r=hsivonen

This commit is contained in:
William Chen 2013-11-13 14:57:07 -08:00
parent f8aca48259
commit c549147842
3 changed files with 14 additions and 6 deletions

View File

@ -3009,7 +3009,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
}
break starttagloop;
case NOFRAMES:
startTagScriptInHead(elementName, attributes);
startTagGenericRawText(elementName, attributes);
attributes = null; // CPP
break starttagloop;
default:
@ -4017,8 +4017,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
continue;
case AFTER_AFTER_FRAMESET:
errStrayEndTag(name);
mode = IN_FRAMESET;
continue;
break endtagloop;
case TEXT:
// XXX need to manage insertion point here
pop();

View File

@ -1866,7 +1866,7 @@ nsHtml5TreeBuilder::startTag(nsHtml5ElementName* elementName, nsHtml5HtmlAttribu
NS_HTML5_BREAK(starttagloop);
}
case NS_HTML5TREE_BUILDER_NOFRAMES: {
startTagScriptInHead(elementName, attributes);
startTagGenericRawText(elementName, attributes);
attributes = nullptr;
NS_HTML5_BREAK(starttagloop);
}
@ -2950,8 +2950,7 @@ nsHtml5TreeBuilder::endTag(nsHtml5ElementName* elementName)
}
case NS_HTML5TREE_BUILDER_AFTER_AFTER_FRAMESET: {
errStrayEndTag(name);
mode = NS_HTML5TREE_BUILDER_IN_FRAMESET;
continue;
NS_HTML5_BREAK(endtagloop);
}
case NS_HTML5TREE_BUILDER_TEXT: {
pop();

View File

@ -386,3 +386,13 @@ Line 1 Col 19 Expected closing tag. Unexpected end of file.
| <button>
| <p>
| <button>
#data
<!DOCTYPE html><html><frameset></frameset></html></frameset>
#errors
60: Stray end tag “frameset”.
#document
| <!DOCTYPE html>
| <html>
| <head>
| <frameset>