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 and .xht files are being validated as HTML instead of XHTML #32

Open
geekley opened this issue Aug 5, 2021 · 0 comments
Open
Labels
bug Something isn't working enhancement New feature or request

Comments

@geekley
Copy link

geekley commented Aug 5, 2021

For example, using <br> instead of <br/> should generate an error in .xhtml files, which use XML parser.
https://validator.w3.org/nu/#file does properly recognize the XHTML extensions and use the appropriate parser.
https://validator.github.io/validator/ also claims to do the same.

It seems all capabilities exist in Nu Html Checker, the extension just needs to detect it and use the functionality (vscode doesn't use a different language id for XHTML).

XHTML is expected when:

  • file is server as mime type application/xhtml+xml or application/xml; or
  • filename ends with .xht or .xhtml (when mime type is unknown, e.g. local files)
@Umoxfo Umoxfo added bug Something isn't working enhancement New feature or request labels Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants