w3c / Unicorn

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

False, compounding errors on seemingly-compliant document. #174

Closed vivienlacourba closed 8 years ago

vivienlacourba commented 8 years ago

Reported by aaron on 17 Jul 2013 05:49 UTC A conformance check on http://magnifi.ca/photos/concept/everydotcom/ is showing several plainly false errors, which are spiralling off to trigger even more.

vivienlacourba commented 8 years ago

Comment by jean-gui on 17 Jul 2013 08:54 UTC You have a div element in the head one which is forbidden in HTML5. http://www.w3.org/TR/html5/dom.html#metadata-content-0 lists elements that can appear in . Since div is not allowed there, the HTML validator closes the head and opens the body just before, explaining all these errors. Note that browsers have the same behavior (you can check with Firefox or Chrome development toolbars).