Skip to content
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

htmlq removes the DOCTYPE #56

Open
KenSharp opened this issue Nov 10, 2022 · 2 comments
Open

htmlq removes the DOCTYPE #56

KenSharp opened this issue Nov 10, 2022 · 2 comments

Comments

@KenSharp
Copy link

HTML5 asks specifically for the DOCTYPE:

<!DOCTYPE html>

but running htmlq removes this. There doesn't seem to be an option to disable this behaviour, and it is certainly not desirable.

After using htmlq, the pages fail to validate with the W3C validator.

The suggested workaround doesn't work either:

<!DOCTYPE html SYSTEM "about:legacy-compat">

Indeed, testing shows that any line starting with <! anywhere in the code is stripped by htmlq.

@IGLOU-EU
Copy link

I confirm this issue.
My usage htmlq -r '#WebPartWPQ5 *' -f "$f" | sponge "$f"

@XLTechie
Copy link

XLTechie commented Jul 26, 2023 via email

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

No branches or pull requests

3 participants