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

VERIFIED FIXED

Status

()

Core
HTML: Parser
P3
normal
VERIFIED FIXED
17 years ago
17 years ago

People

(Reporter: emk, Assigned: harishd)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

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

Attachments

(2 attachments)

(Reporter)

Description

17 years ago
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

17 years ago
Created attachment 11443 [details]
Testcase
(Assignee)

Comment 2

17 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

17 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.
(Assignee)

Comment 4

17 years ago
Created attachment 11944 [details] [diff] [review]
Proposed patch.
(Assignee)

Comment 5

17 years ago
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

17 years ago
Trivial fix for a relatively serious problem.  Marking nsbeta3+.
Whiteboard: Fix in hand → [nsbeta3+][Fix in hand]
(Assignee)

Comment 7

17 years ago
Fix is in. Marking FIXED.
Status: ASSIGNED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
(Reporter)

Comment 8

17 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.