зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
5c3c7a6c8e
Коммит
1a3232906d
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче