зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
3f7418be24
Коммит
d273b7afe8
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче