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

XHTML *is* valid HTML ! #47

Open
wxgeo opened this issue Nov 19, 2024 · 1 comment
Open

XHTML *is* valid HTML ! #47

wxgeo opened this issue Nov 19, 2024 · 1 comment

Comments

@wxgeo
Copy link

wxgeo commented Nov 19, 2024

First, thanks a lot for this great extension !
I use it for some years now with my students, and it proves much useful.

I have some minor grief though : I expect my students HTML documents to be also valid as XML, and so to use trailing slashes in self-closing tags, like .
(This is no so uncommon I think, and even some formatters like prettier enforce this, leading to a code easier to read and to maintain IMHO.)

I've seen you've added recently a nice option to disable info (or warnings).
However, even if disabled, info presence result in a message "This HTML document is not valid."

That all pages formatted with prettier get this message is not only quite perturbing for beginners like my students, it is also incorrect, since such a page may be perfectly valid.

So, I think the message should conform to W3C validation tool behaviour :

  • errors and warnings result in an invalid page
  • info don't impact page validity

Thanks for your attention,
Regards.

@Pixelum42
Copy link

Hello
This extension is sadly not maintained anymore. Check out this extension someone made and talked about in an earlier issue, that fixes some of the problems.

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

2 participants