CSP errors as HTML errors

Hi validator team—

when analyzing various websites, I noticed that CSP errors are reported and counted as HTML errors, as on Pinterest: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.pinterest.com%2F

This is a problem as it breaks with the expectation that the HTML validator validates HTML.

It also makes broader analyses significantly harder (if not practically impossible, because of the need to check each and every HTML error on relating to HTML).

Could this please be updated? Most important would seem not to include this in the HTML error count; other improvements could include moving this under “info messages,” and later making CSP validation something to opt in to?

Best,

 Jens.

--
Jens Oliver Meiert
https://meiert.com/en/ · https://mas.to/@j9t

Received on Saturday, 28 October 2023 10:37:38 UTC