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 7 - Fatal Error: No DOCTYPE specified!
Summary: Fatal Error: No DOCTYPE specified!
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.0b1
Hardware: All All
: P2 normal
Target Milestone: 0.6.0b3
Assignee: Terje Bless
QA Contact:
Depends on: 8 9 10 11
  Show dependency treegraph
Reported: 2002-10-24 18:51 UTC by Terje Bless
Modified: 2005-02-03 17:35 UTC (History)
0 users

See Also:


Description Terje Bless 2002-10-24 18:51:22 UTC
Reported by Björn Höhrmann <>:


  Fatal Error: No DOCTYPE specified!
     I could not parse this document, because it does not include a
     DOCTYPE Declaration. A DOCTYPE Declaration is mandatory for most
     current markup languages and without such a declaration it is
     impossible to validate this document.
     You should make the first line of your HTML document a DOCTYPE
     declaration, for example, for a typical [29]XHTML 1.0 document:

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        <html xmlns="" xml:lang="en">
            <-- ... body of document ... -->
     For a list of possible DOCTYPE Declarations, please see the W3C QA
     Activity's [30]List List of Valid Doctypes.

1) I don't see any good reason to refuse validation completly. It's very
   simple to choose document types to default to, e.g.

     if element html has attribute xmlns
       default to XHTML 1.0 Transitional
       default to HTML 4.01 Transitional

2) the page should display the revalidate form

3) It's "document type declaration", not "DOCTYPE declaration", please
   keep the terminology straight

4) The phrase talks about a "first line", while the document type
   declaration in the example takes two lines

5) The example should (as per XHTML 1.0) include a XML declaration

6) The example should (as per XHTML 1.0) use both, the lang and the
   xml:lang attribute

7) A "List List"? :-)
Comment 1 Terje Bless 2002-10-27 11:55:22 UTC
All issues and depends resolved (see dep tree for details). Closing.