Bug 595797 - Add the attributes of an <html> start tag to the root element if the <html> tag is seen after a frameset. rs=jonas, a=blocking2.0-betaN.
This commit is contained in:
@@ -2877,6 +2877,13 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
|||||||
}
|
}
|
||||||
case AFTER_AFTER_FRAMESET:
|
case AFTER_AFTER_FRAMESET:
|
||||||
switch (group) {
|
switch (group) {
|
||||||
|
case HTML:
|
||||||
|
err("Stray \u201Chtml\u201D start tag.");
|
||||||
|
if (!fragment) {
|
||||||
|
addAttributesToHtml(attributes);
|
||||||
|
attributes = null; // CPP
|
||||||
|
}
|
||||||
|
break starttagloop;
|
||||||
case NOFRAMES:
|
case NOFRAMES:
|
||||||
appendToCurrentNodeAndPushElementMayFoster(
|
appendToCurrentNodeAndPushElementMayFoster(
|
||||||
"http://www.w3.org/1999/xhtml",
|
"http://www.w3.org/1999/xhtml",
|
||||||
|
|||||||
@@ -1774,6 +1774,14 @@ nsHtml5TreeBuilder::startTag(nsHtml5ElementName* elementName, nsHtml5HtmlAttribu
|
|||||||
}
|
}
|
||||||
case NS_HTML5TREE_BUILDER_AFTER_AFTER_FRAMESET: {
|
case NS_HTML5TREE_BUILDER_AFTER_AFTER_FRAMESET: {
|
||||||
switch(group) {
|
switch(group) {
|
||||||
|
case NS_HTML5TREE_BUILDER_HTML: {
|
||||||
|
|
||||||
|
if (!fragment) {
|
||||||
|
addAttributesToHtml(attributes);
|
||||||
|
attributes = nsnull;
|
||||||
|
}
|
||||||
|
NS_HTML5_BREAK(starttagloop);
|
||||||
|
}
|
||||||
case NS_HTML5TREE_BUILDER_NOFRAMES: {
|
case NS_HTML5TREE_BUILDER_NOFRAMES: {
|
||||||
appendToCurrentNodeAndPushElementMayFoster(kNameSpaceID_XHTML, elementName, attributes);
|
appendToCurrentNodeAndPushElementMayFoster(kNameSpaceID_XHTML, elementName, attributes);
|
||||||
originalMode = mode;
|
originalMode = mode;
|
||||||
|
|||||||
Reference in New Issue
Block a user