html-validator icon indicating copy to clipboard operation
html-validator copied to clipboard

Problem using isFragment

Open Ciao121 opened this issue 1 year ago • 2 comments
trafficstars

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

Ciao121 avatar May 02 '24 16:05 Ciao121

Sorry, technically the validation does not fail but you get a warning.

Ciao121 avatar May 02 '24 16:05 Ciao121

Hi @Ciao121

Same problem for me. I opened https://github.com/zrrrzzt/html-validator/pull/264 for this

QuentinouLeTwist avatar May 28 '24 12:05 QuentinouLeTwist