The saga continues. Don't move around <script>, since that breaks pages... Bug

243064, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@156206 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-05-10 21:04:18 +00:00
parent 1c3d0e23f4
commit a7b3731d67

View File

@@ -923,8 +923,10 @@ nsresult CNavDTD::HandleToken(CToken* aToken,nsIParser* aParser){
// illegal here so they'll be shipped out with their parents and
// siblings. See bug 40855 for an explanation (that bug was for
// comments, but the same issues arise with whitespace, newlines,
// noscript, scripts, etc).
!gHTMLElements[theTag].HasSpecialProperty(kLegalOpen))) {
// noscript, etc). Script is special, though. Shipping it out
// breaks document.write stuff. See bug 243064.
(!gHTMLElements[theTag].HasSpecialProperty(kLegalOpen) ||
theTag == eHTMLTag_script))) {
mFlags &= ~NS_DTD_FLAG_MISPLACED_CONTENT; // reset the state since all the misplaced tokens are about to get handled.