Bug 536097 - Copy endTag flag when copying HTML5 tokenizer state. rs=sicking.

--HG--
extra : rebase_source : a7effe977998b9fe7dd32abed804a0e3a70df079
This commit is contained in:
Henri Sivonen 2010-03-12 12:27:15 +02:00
parent e28f1efdf7
commit 1398345c93
2 changed files with 6 additions and 0 deletions

View File

@ -3871,6 +3871,7 @@ nsHtml5Tokenizer::resetToDataState()
prevValue = -1;
value = 0;
seenDigits = PR_FALSE;
endTag = PR_FALSE;
shouldSuspend = PR_FALSE;
initDoctypeFields();
if (!!tagName) {
@ -3918,6 +3919,7 @@ nsHtml5Tokenizer::loadState(nsHtml5Tokenizer* other)
prevValue = other->prevValue;
value = other->value;
seenDigits = other->seenDigits;
endTag = other->endTag;
shouldSuspend = PR_FALSE;
nsHtml5Portability::releaseLocal(doctypeName);
if (!other->doctypeName) {

View File

@ -1782,6 +1782,10 @@ nsHtml5TreeBuilder::startTag(nsHtml5ElementName* elementName, nsHtml5HtmlAttribu
}
}
}
case NS_HTML5TREE_BUILDER_TEXT: {
goto starttagloop_end;
}
}
}
}