Bug 1044118 - Fix inverted check for unclosed children in ruby tag. r=hsivonen

This commit is contained in:
William Chen
2014-08-04 15:54:20 -07:00
parent 49845b7aca
commit 0e896528b6
2 changed files with 4 additions and 4 deletions

View File

@@ -1328,7 +1328,7 @@ nsHtml5TreeBuilder::startTag(nsHtml5ElementName* elementName, nsHtml5HtmlAttribu
generateImpliedEndTags();
}
if (eltPos != currentPtr) {
if (eltPos != NS_HTML5TREE_BUILDER_NOT_FOUND_ON_STACK) {
if (eltPos == NS_HTML5TREE_BUILDER_NOT_FOUND_ON_STACK) {
errStartTagSeenWithoutRuby(name);
} else {
errUnclosedChildrenInRuby();
@@ -1345,7 +1345,7 @@ nsHtml5TreeBuilder::startTag(nsHtml5ElementName* elementName, nsHtml5HtmlAttribu
}
if (eltPos != currentPtr) {
if (!isCurrent(nsHtml5Atoms::rtc)) {
if (eltPos != NS_HTML5TREE_BUILDER_NOT_FOUND_ON_STACK) {
if (eltPos == NS_HTML5TREE_BUILDER_NOT_FOUND_ON_STACK) {
errStartTagSeenWithoutRuby(name);
} else {
errUnclosedChildrenInRuby();