W3C home > Mailing lists > Public > www-validator-cvs@w3.org > June 2014

[Bug 26010] New: HTML 4.01 validator dos not recognize as valid a page with nothing in the body

From: <bugzilla@jessica.w3.org>
Date: Sat, 07 Jun 2014 16:39:40 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-26010-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26010

            Bug ID: 26010
           Summary: HTML 4.01 validator dos not recognize as valid a page
                    with nothing in the body
           Product: Validator
           Version: HEAD
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
          Assignee: dave.null@w3.org
          Reporter: aldemarcalazans@gmail.com
        QA Contact: www-validator-cvs@w3.org

If you upload the following (and correct) template to the validator, it will
give you an error:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <title>A 4.01 Strict standard template</title>
  <meta http-equiv="content-type" content="text/html;charset=utf-8">
 </head>
 <body>

 </body>
</html>

The problem does not occur if you "fill" it with anything, for instance, an
empty paragraph, as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <title>A 4.01 Strict standard template</title>
  <meta http-equiv="content-type" content="text/html;charset=utf-8">
 </head>
 <body>
  <p></p>
 </body>
</html>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Saturday, 7 June 2014 16:39:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:57 UTC