зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
23beaaf5ab
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче