Clear the namespace stack on a well-formedness error, since we're clearing our

state then.  Bug 239546, r=sicking, sr=peterv
This commit is contained in:
bzbarsky%mit.edu 2004-04-14 19:31:33 +00:00
Родитель 3f7418be24
Коммит d273b7afe8
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -1363,6 +1363,10 @@ nsXMLContentSink::ReportError(const PRUnichar* aErrorText,
mState = eXMLContentSinkState_InProlog;
// Since we're blowing away all the content we've created up to now,
// blow away our namespace stack too.
mNameSpaceStack.Clear();
// Clear the current content and
// prepare to set <parsererror> as the document root
nsCOMPtr<nsIDOMNode> node(do_QueryInterface(mDocument));