This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9807 - Contradictory advice about HTML4 system identifier
Summary: Contradictory advice about HTML4 system identifier
Status: RESOLVED NEEDSINFO
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 10:41 UTC by Richard Ishida
Modified: 2011-08-23 21:13 UTC (History)
0 users

See Also:


Attachments

Description Richard Ishida 2010-05-26 10:41:36 UTC
[[
1. Warning Mismatch between Public and System identifiers in the DOCTYPE declaration

This document uses an inconsistent DOCTYPE declaration. The Public Identifier -//W3C//DTD HTML 4.0//EN declares the HTML 4.0 Strict document type, but the associated System Identifier http://www.w3.org/TR/html4/strict.dtd does not match this document type.

The recommended System Identifier for HTML 4.0 Strict is http://www.w3.org/TR/1998/REC-html40-19980424/strict.dtd.

The safest way to use a correct DOCTYPE declaration is to copy and paste one from the recommended list and avoid editing that part of your markup by hand.
]]

So I looked at the recommended list, and it says that I should use http://www.w3.org/TR/html4/strict.dtd.  Please clarify this.
Comment 1 Ville Skyttä 2011-08-23 21:13:13 UTC
The recommended list at http://www.w3.org/QA/2002/04/valid-dtd-list.html has http://www.w3.org/TR/html4/strict.dtd, but it's HTML 4.01 Strict, and the posted warning message indicates your document is HTML 4.0 (not 4.01) Strict.

There are no HTML 4.0 entries in that recommended list, and I'm not aware of a better suggestion for it than what the validator currently suggests.  If you do have one, feel free to post it and reopen this bug.