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

MessageEmitterAdapter.setHtml(true) causes misspellings #12

Closed
cvrebert opened this issue Oct 1, 2014 · 1 comment
Closed

MessageEmitterAdapter.setHtml(true) causes misspellings #12

cvrebert opened this issue Oct 1, 2014 · 1 comment

Comments

@cvrebert
Copy link

cvrebert commented Oct 1, 2014

This is using the latest version from https://github.com/validator/validator.github.io .
Calling .setHtml(true) when initializing the MessageEmitterAdapter seems to cause the repetition of the first letter in the sentence of some validation messages:

  • "Aattribute href not allowed on element span at this point."
  • "Eelement p not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)"

Here's the main relevant part of my code, although I think the bug should be reproducible without it: https://github.com/cvrebert/lmvtfy/blob/master/src/main/scala/com/chrisrebert/lmvtfy/validation/Html5Validator.scala
It's in Scala but heavily based on your SimpleCommandLineValidator. I'm happy to help out if you have any trouble reproducing the problem. I have a couple of reliable Specs2 testcases that catch the bug.

X-Ref: validator/validator#2

@cvrebert
Copy link
Author

cvrebert commented Oct 3, 2014

Closing since there's been a reply on validator/validator#2

@cvrebert cvrebert closed this as completed Oct 3, 2014
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

1 participant