mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
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:
parent
23beaaf5ab
commit
d18d8f587b
@ -1953,6 +1953,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||
if (TreeBuilder.NOT_FOUND_ON_STACK != findLastInScope("nobr")) {
|
||||
err("\u201Cnobr\u201D start tag seen when there was an open \u201Cnobr\u201D element in scope.");
|
||||
adoptionAgencyEndTag("nobr");
|
||||
reconstructTheActiveFormattingElements();
|
||||
}
|
||||
appendToCurrentNodeAndPushFormattingElementMayFoster(
|
||||
elementName,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user