Steps to reproduce: 1. Launch Mozilla. 2. Navigate to the following testcase. Actual result: An alert doesn't popup. Expected result: An alert should popup. Occurs on: 2000071420 nightly on Windows 2000. Strict dtd allows SCRIPT in BODY. ( http://www.w3.org/TR/html4/strict.dtd ) |<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->
Created attachment 11443 [details] Testcase
BODY should be able to contain SCRIPT ( per spec. ). There is not excuse for not following the spec. We have to fix this problem for beta3. IT IS MUST.
If script is external, it is not ignored, but incorrect. Here is a testcase. http://homepage1.nifty.com/emk/moz/script.html - "text2" is drawn, then "text1" is drawn and "text2" disappears. http://homepage1.nifty.com/emk/moz/script-quirks.html - "text1" and "text2" is drawn.
Created attachment 11944 [details] [diff] [review] Proposed patch.
External JS problem will get resolved if I combine the above patch with the patch in bug 44285. Cause: Block error message ( sent by the script engine on loading an external JS ) got lost in COtherElements.h.
Trivial fix for a relatively serious problem. Marking nsbeta3+.
Fix is in. Marking FIXED.
Verified fixed using 2000082104 nightly build on Windows 2000.