Fix for bug 289169 (DOMParser freezes when parsing elements with fixed attributes.). r/sr=jst, a=asa.

git-svn-id: svn://10.0.0.236/trunk@174699 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2005-06-16 11:59:28 +00:00
parent a961540bb0
commit 2c51552143

View File

@@ -2843,11 +2843,14 @@ storeAtts(XML_Parser parser, const ENCODING *enc,
/* BEGIN MOZILLA CHANGE (Include xmlns attributes in attributes array) */
#if 0
if (!--nPrefixes)
break;
#else
if (!--nPrefixes && !nXMLNSDeclarations)
if (!--nPrefixes && !nXMLNSDeclarations) {
i += 2;
break;
}
#endif
/* END MOZILLA CHANGE */
break;
}
/* BEGIN MOZILLA CHANGE (Include xmlns attributes in attributes array) */
else if (s[-1] == 3) { /* xmlns attribute */
@@ -2891,8 +2894,10 @@ storeAtts(XML_Parser parser, const ENCODING *enc,
poolFinish(&tempPool);
appAtts[i] = s;
if (!--nXMLNSDeclarations && !nPrefixes)
if (!--nXMLNSDeclarations && !nPrefixes) {
i += 2;
break;
}
}
/* END MOZILLA CHANGE */
else /* not prefixed */