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
Родитель 5c3c7a6c8e
Коммит 1a3232906d
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));