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 errors when parsing HTML5 #3

Closed
jsmyth1969 opened this issue Jun 27, 2014 · 2 comments
Closed

XHTML errors when parsing HTML5 #3

jsmyth1969 opened this issue Jun 27, 2014 · 2 comments

Comments

@jsmyth1969
Copy link

If I use the validator jar on the command line for parsing HTML5 files (local or URL based), I get a XHTML error:

java -jar ~/software/vnu/vnu/vnu.jar --html /software/vnu/vnu/index.html
"file:
/software/vnu/vnu/index.html":140.23-140.23: error: XHTML element “style” not allowed as child of XHTML element “p” in this context. (Suppressing further errors from this subtree.)

If instead I run using the http client against a locally running standalone vnu instance I get an error which doesn't reference XHTML:

java -cp ~/software/vnu/vnu/vnu.jar nu.validator.client.HttpClient /software/vnu/vnu/index.html
"
/software/vnu/vnu/index.html":140.1-140.23: error: Element "style" not allowed as child of element "p" in this context. (Suppressing further errors from this subtree.)

Why the difference in error reporting?

@sideshowbarker
Copy link
Member

I think I've since fixed this in the sources:

validator/validator@56568ef

...and I've released a new version of the jar file:

https://github.com/validator/validator.github.io/releases/tag/20140819
https://github.com/validator/validator.github.io/releases/download/20140819/vnu-20140819.jar.zip

So please try it and let if me know if it's still not working as expected.

@sideshowbarker
Copy link
Member

Closing this for now. Feel free to reopen it if there's still any problem

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