wawandco / milo

Milo is an HTML linter written in Go
MIT License
20 stars 0 forks source link

False positive 0012:attribute/lowercase on valid uppercase character in attribute #43

Closed christianhujer closed 4 years ago

christianhujer commented 4 years ago

Given the following well-formed and valid XHTML 5.2 file

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <link href="Logo" rel="icon" type="image/png"/>
    <title>Milo Test</title>
</head>
<body>
    <h1>Milo Test</h1>
</body>
</html>

Milo wrongly reports:

:4:1: attr-lowercase: attributes should be in lowercase (0012:attribute/lowercase)

Note that the filename is not cut from the output, Milo also got so confused that Milo did not print the filename. I will report this as a separate issue.