-
AuthorPosts
-
October 28, 2014 at 8:46 pm #342404
Hey Guys,
is there a way so that a front page created as on http://kriesi.at/themes/enfold-business-flat/ gets HTML-valid?
Please see http://validator.w3.org/check?uri=http%3A%2F%2Fkriesi.at%2Fthemes%2Fenfold-business-flat%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 for errors.
In my implementation, I get the following 2 errors:
- No space between attributes
- Attribute ; not allowed on element span at this point
Thanks a lot!
Best, SimonOctober 30, 2014 at 7:33 pm #343577Hi Simon!
its not 100% the same, but I think very similar: https://kriesi.at/support/topic/enfold-and-httpthemecheck-org/#post-342704
Regards,
AndyOctober 30, 2014 at 9:17 pm #343700Hi Andy,
the “client” is me ;-) I know the pros & cons of the W3C HTML / CSS validation very well, therefore I did not come up with the (very) “invalid” CSS of Enfold. In case of Enfold, these WC3 CSS validation errors can be ignored savely IMHO.
But the W3C HTML validation should not give any errors. All Enfold sites pass the W3C HTML validation. But the “Business Theme” (I only tested the front page) does not, and this could be fixed pretty fast & easy (it’s only 19 errors, most of them are the same).
There are many strong arguments for (W3C) valid HTML. I suppose there has been done some effort to Enfold to make it HTML valid (otherwise it’s kind of unlikely that it passes the W3C HTML validation). Therefore it would be great to have this for the “Business Theme” too.
In case you do not want to fix this, maybe you can give me some advice where those errors are generated in the source code (this affects only the front page), so I can dig into the source code & fix this on my own (just the errors, not the warnings).
Thanks!
Regards, Simon- This reply was modified 10 years, 1 month ago by Simon.
November 1, 2014 at 10:04 am #344518Hey!
These errors are just false positives which checkers marked as invalid structure because the validation does not take into account cross browser compatibility such as vendor extensions which is totally required to make these complex themes work. Not to mention unconventional and modern techniques. Any premium themes, plugins and anything designed to have maximum compatibility for users or includes more than basic functionality will not pass these tests.
Cheers!
IsmaelNovember 8, 2014 at 12:56 am #348018I don’t think so ;-)
Just for those who’d like to get valid html, go to hr.php, lines 262 – 263 and change …
$inner_style = "style='{$inner_style}'; "; $style = "style='{$style}'; ";
to …
$inner_style = "style='{$inner_style}' "; $style = "style='{$style}' ";
Cheers!
November 9, 2014 at 7:27 pm #348405Hey!
Thanks for your feedback Simon, i’ll let Kriesi know :)
Best regards,
JosueJanuary 15, 2015 at 11:52 am #379964 -
AuthorPosts
- You must be logged in to reply to this topic.