Skip to content

--doctype html5 leaves ?xml and xmlns #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jidanni opened this issue Feb 24, 2019 · 1 comment
Open

--doctype html5 leaves ?xml and xmlns #805

jidanni opened this issue Feb 24, 2019 · 1 comment

Comments

@jidanni
Copy link
Contributor

jidanni commented Feb 24, 2019

Here we observe tidy --doctype html5 is helpless at getting rid of
the ?xml and xmlns lines in

$ pod2html /dev/null | sed 's/rev=/rel=/ #fix pod2html bug' | tidy -q --doctype html5
<?xml version="1.0"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0" />
<title></title>
<meta http-equiv="content-type" content=
"text/html; charset=utf-8" />
<link rel="made" href="mailto:root@localhost" />
</head>
<body>
</body>
</html>

Well at least on the man page at --doctype html5 mention what to do. See also #658, #767.

@geoffmcl
Copy link
Contributor

@jidanni can only agree tidy's handling of xml/xhtml leaves a lot to be desired, as indicated here, in #658, #767, and maybe others...

There have been no code/docs changes, fixes, enhancements, etc, etc..., in this xhtml area, since forever... needs some TLC...

Also agree the doctype ref. does not make it very clear that is does virtually nothing to the document! Except change the output DOCTYPE... It does say This option does not offer a validation of document conformance....

Look forward to specific code/doc change suggestions... comments, patches, PRs, ... all very welcome... thanks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants