Open
Description
On current HEAD (f0438bd):
$ tidy <<EOF
<?xml version="1.0" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head>
<body>
<img src="foo.jpg" alt="Foo" />
<br />
</body></html>
EOF
Reports:
Info: Document content looks like XHTML 1.0 Transitional
Even though the document is quite obviously XHTML5, with the XML preamble combined with <!DOCTYPE html>
and the xmlns
attribute being dead giveaways.
Weirdly enough, the document is correctly recognized as XHTML5 if the following is added:
<meta charset="utf-8" />