html-validator
html-validator copied to clipboard
Problem using isFragment
I'm using this since a month and I had no problem.
Today I tried to use it with an Italian fragment and I got this:
This document appears to be written in Italian but the “html” start tag has “lang="en"”. Consider using “lang="it"” (or variant) instead.
My fragment has no headers. It's just a series of <p>some text</p> paragraphs. I think that lang="en" is injected by the validator. It should be possible to specify a language otherways the validation fails for any non english language
Sorry, technically the validation does not fail but you get a warning.
Hi @Ciao121
Same problem for me. I opened https://github.com/zrrrzzt/html-validator/pull/264 for this