[VE][64] Confusing error when title missing

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