Active
Project:
Omega
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2012 at 13:16 UTC
Updated:
12 Nov 2012 at 19:17 UTC
As raised in #1256218: W3 Validation errors on rel=home, out-of-the-box Drupal 7 and Omega 7 give validation errors when tested with the W3 validator, e.g.:
The 3rd party HTML5 validator service html5.validator.nu gives the same:
The question is, what can be done to fix these problems? Is it a problem with the validators being inflexible or are the errors legit?
Comments
Comment #1
ANDiTKO commentedThe W3 validator link works in "Doctype: -//W3C//DTD HTML+RDFa 1.1//EN". You have to re-validate it in HTML5 Doctype and you will get less errors. Since HTML5 is not finalized nobody knows what will be added, changed or removed. So making it validate wont do that big of a difference. Dont forget that valid sites might still display messed up on internet explorer.
Comment #2
artfulrobot commentedI found disabling RDF module sorted 90% HTML5 validation issues.
Disabling RDF broke views RSS feeds. This patch fixed that.
Validation is really important to me. Without this we could all "go ie6" and the web would quickly become a complete mess. It's always going to be an uphill struggle esp. with constant emergence of new technologies but I believe it's one worth defending.
Comment #3
damienmckenna@artfulrobot: That sounds intriguing, I'll try it out.
Comment #4
DriesP commentedWhat are the complications I will get from removing a few lines from html.tpl.php?
I changed it from:
To this:
This fixed the validation issues, but I have the feeling I did something dangerous here. :-)
Any thoughts?
Comment #5
damienmckenna@DriePie: I have a feeling that would possibly cause Metatag's OpenGraph support to break, it needs to add things to the actual html tag.
Comment #6
DriesP commentedHow about now:
Now everything validates just fine. Does anyone think this will lead up to complications?
Comment #7
bogorman commentedWould be interesting to hear other comments on this issue. DriePie has made an interesting suggestion.
Are there any disadvantages in modifying html.tpl.php as he suggests?
Comment #8
bogorman commentedWould be interesting to hear other comments on this issue. DriePie has made an interesting suggestion.
Are there any disadvantages in modifying html.tpl.php as he suggests?
Comment #9
scor commentedI believe all these validation issues should be fixed with this patch: #1674238: Adapt html.tpl.php output to RDFa 1.1 / HTML5. Please confirm if it works for you.