Closed Bug 45555 Opened 21 years ago Closed 21 years ago

SCRIPT in BODY doesn't work when strict dtd is used

Categories

(Core :: DOM: HTML Parser, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: emk, Assigned: harishd)

References

()

Details

(Whiteboard: [nsbeta3+][Fix in hand])

Attachments

(2 files)

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 -->
Attached file 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.
Assignee: rickg → harishd
Keywords: nsbeta3
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.
Attached patch Proposed patch.Splinter Review
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.
Status: NEW → ASSIGNED
Whiteboard: Fix in hand
Trivial fix for a relatively serious problem.  Marking nsbeta3+.
Whiteboard: Fix in hand → [nsbeta3+][Fix in hand]
Fix is in. Marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Verified fixed using 2000082104 nightly build on Windows 2000.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.