mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 822776 - Update "after after frameset" insertion mode. r=hsivonen
This commit is contained in:
parent
a6888e633e
commit
d3cdfbb569
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user