You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I run that through tidy (version 5.3.5), it changes the doctype to: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Which makes it invalid, due to the "meta charset" line. Seems like tidy shouldn't be changing the doctype in this case.
The text was updated successfully, but these errors were encountered:
Hi,
According to the W3C this is valid markup:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<meta charset="utf-8"/>
<title>Tidy testcase</title>
</head>
<body>
<div><p>Foo</p></div>
</body>
</html>
But when I run that through tidy (version 5.3.5), it changes the doctype to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Which makes it invalid, due to the "meta charset" line. Seems like tidy shouldn't be changing the doctype in this case.
The text was updated successfully, but these errors were encountered: