Closed
Bug 45555
Opened 24 years ago
Closed 24 years ago
SCRIPT in BODY doesn't work when strict dtd is used
Categories
(Core :: DOM: HTML Parser, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: emk, Assigned: harishd)
References
()
Details
(Whiteboard: [nsbeta3+][Fix in hand])
Attachments
(2 files)
249 bytes,
text/html
|
Details | |
1005 bytes,
patch
|
Details | Diff | Splinter Review |
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 -->
Reporter | ||
Comment 1•24 years ago
|
||
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
Reporter | ||
Comment 3•24 years ago
|
||
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.
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
Comment 6•24 years ago
|
||
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: 24 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 8•24 years ago
|
||
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.
Description
•