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

This commit is contained in:
Henri Sivonen
2010-03-12 12:27:15 +02:00
parent a86d49d332
commit 7fc56a9cfd
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) {