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
parent a5f73094cb
commit 9725f8b3b5

View File

@@ -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));