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

[VE][64] Confusing error when title missing

From: Mellem, Dan <Dan.Mellem@pomona.k12.ca.us>
Date: Sat, 13 Jun 2015 00:53:32 +0000
To: "www-validator@w3.org" <www-validator@w3.org>
Message-id: <50A1251FAB80254C80F21F53DF59B93DA4685AEB@PUSD-MStore1.pusd.pusd.org>
When validating:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<p> test

You get the error:
Error [64]: "document type does not allow element X here"

However, it would be clearer to report that the <title></title> section is missing or show [VE][73], but this is only shows if there's a "</head>."


Adding a title validates:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<title>a</title>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<p> test

Thanks,
-Dan
Received on Saturday, 13 June 2015 00:56:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:13 UTC