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

Explanation always empty #40

Open
jaimeslr opened this issue Nov 14, 2017 · 3 comments
Open

Explanation always empty #40

jaimeslr opened this issue Nov 14, 2017 · 3 comments

Comments

@jaimeslr
Copy link

When you get the response and it's errors the explanations is always empty. Is there any way to get the message which tell about the problem?

@0crat
Copy link

0crat commented Nov 14, 2017

@yegor256 please, pay attention to this issue

@yegor256
Copy link
Member

@jaimeslr can you please provide the code that proves that?

@jaimeslr
Copy link
Author

Hello @yegor256, I used the code in the example. Something like this:

public class My {
public void main() {
String xhtml = "";
ValidationResponse response = new ValidatorBuilder().html().validate(xhtml);
assert response.valid();
}
}

The response object returns errors but no explanation about that, when you use the W3C validator online you get something like this:

_Error: Start tag seen without seeing a doctype first. Expected .
From line 1, column 1; to line 1, column 6

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