Closed Bug 282238 Opened 20 years ago Closed 20 years ago

Bad DOCTYPE generated by Composer for new HTML files triggers Quirks mode

Categories

(SeaMonkey :: Composer, defect)

SeaMonkey 1.0 Branch
x86
Windows 2000
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 92525

People

(Reporter: desdz666, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050111
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050111

See the line below :

   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Without any URL in the DOCTYPE, it renders in Quirks mode...

But if we change it to be :

   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

It then renders in Standards compliance mode.

It seems to be the right thing, as I learned from this page :
http://www.mozilla.org/docs/web-developer/quirks/doctypes.html

It says that a "public identifier without a system identifier" causes the
rendering engine to use "Quirks mode". 

While I don't know exactly why this url is required, I know that the Mozilla
Composer doesn't write it in newly created files...

So, files created by the Mozilla Composer aren't rendered in "Standards
compliance mode" by default !


Reproducible: Always

Steps to Reproduce:
1. Go to http://desdz.club.fr/CreatedByMozillaComposer.html
Note that it renders in Quirks mode.
2. Go to http://desdz.club.fr/CreatedByMozillaComposerURL.html
It should render in Standards compliance mode.
i don't think composer really generates standards mode content, and i doubt
users expect it. this is probably a dupe of a wontfix.

*** This bug has been marked as a duplicate of 92525 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
V.Duplicate
Status: RESOLVED → VERIFIED
Version: unspecified → SeaMonkey 1.0 Branch
You need to log in before you can comment on or make changes to this bug.