Bug 635085 - Reconstruct any active formatting elements after auto closing a <nobr> in a nested <nobr> situation, per HTML spec. r=hsivonen approval2.0=shaver

This commit is contained in:
Mats Palmgren
2011-02-22 00:06:27 +01:00
parent d247b5a905
commit 0dee42fc99
2 changed files with 2 additions and 0 deletions

View File

@@ -1038,6 +1038,7 @@ nsHtml5TreeBuilder::startTag(nsHtml5ElementName* elementName, nsHtml5HtmlAttribu
if (NS_HTML5TREE_BUILDER_NOT_FOUND_ON_STACK != findLastInScope(nsHtml5Atoms::nobr)) {
adoptionAgencyEndTag(nsHtml5Atoms::nobr);
reconstructTheActiveFormattingElements();
}
appendToCurrentNodeAndPushFormattingElementMayFoster(elementName, attributes);
attributes = nsnull;