NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 1030 - html5.validator.nu can maybe warn for definitely wrong lowercase/uppercase outside (X)HTML5
html5.validator.nu can maybe warn for definitely wrong lowercase/uppercase ou...
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 enhancement
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-23 15:08 CEST by Jan Willem Stegink
Modified: 2016-10-23 15:08 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Willem Stegink 2016-10-23 15:08:27 CEST
Problem description:

Definitely wrong lowercase/uppercase is not reported.

1. I think doctype in <!doctype HTML> is not the usual lowercase html; it is like a reserved word. Previous bugreport 404 suggests to lowercase DOCTYPE. I read lowercase was destabilising somewhere.
 
2. I think HTML in <!doctype HTML> is incorrectly in uppercase.

3. The characterset utf-8 definitely is named UTF-8.
------------------------------
 
Example to achieve three warnings:
 
<!doctype HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>no title</title>
</head>
<body>some text</body>
</html>
----------------------------

I use this code for compatibility:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>no title</title>
</head>
<body>some text</body>
</html>