w3c / Unicorn

Unicorn - W3C's Unified Validator
https://validator.w3.org/unicorn/
Other
127 stars 59 forks source link

CSS Validator doesn't realize document is not CSS #142

Closed vivienlacourba closed 7 years ago

vivienlacourba commented 8 years ago

Reported by Felix Oghina felix oghina on 14 Dec 2010 11:42 UTC Give the validator this code (by direct input):

<!DOCTYPE html><html><head><title>Hello</title></head><body><p>Hello, World</p></body></html>

The CSS validator will complain that

Parse Error Lexical error at line 1, column 3. Encountered: "D" (68), after : "<!"

It should detect that the submitted document is not a CSS document and behave like the feed validator, which says:

It looks like this is a web page, not a feed.
I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.