2014-10-09 12:19 GMT+02:00 Guillaume "Louis-Marie" Delhumeau < [email protected]>:
Hello.
Flamingo is still not HTML5 valid, so I am working on it.
We actually use some <meta> tags that are become invalid in HTML5.
= X-UA-Compatible = <meta http-equiv="X-UA-Compatible" content="IE=edge" /> It forces the Compatibility mode for IE browsers to use the latest rendering mode.
We can replace it by adding the X-UA-Compatible in the HTTP headers, but I actually propose to surround this tag like this: <!--[if IE]> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <![endif]-->
Actually, after some tests done last year, I got the conclusion that we should use both the <meta> tag AND the HTTP header. If only one of them is used, IE does not always obey, *on intranet sites*. See http://stackoverflow.com/questions/6156639/x-ua-compatible-is-set-to-ie-edge...
The code is valid (because inside a comment so the validator does not parse it) and it is still usable with IE.
= imagetoolbar = <meta http-equiv="imagetoolbar" content="no"/> it disables the toolbar that comes up when you mouse over an image in MSIE.
Same, I propose to add a conditional comment: <!--[if IE]> <meta http-equiv="imagetoolbar" content="no"/> <![endif]-->
= Content-Script-Type = <meta http-equiv="Content-Script-Type" content="text/javascript" /> It defines the default scripting language that is used for intrinsic events (e.g. onmouseover attributes).
This tag has been deprecated, and there is nothing to replace it. I don't think this tag is very useful because most of the browsers assume that an intrinsic event will be handled by javascript. Actually I did not know this meta tag before today and my inline javascript did always work!
So I propose to just remove it.
= Distribution = <meta name="distribution" content="GLOBAL" /> (from XWiki.XWikiPreferences) It actually defines either the website should be considered as public or local (see See http://www.metatags.info/meta_name_distribution).
I propose to remove it.
= reply-to = <meta http-equiv="reply-to" content="" /> (from XWiki.XWikiPreferences)
To be useful, the content should not be empty, so the administrator should set it. Moreover, it is very not well-known, and it could be a problem since the spam bots can read it.
I propose to remove it. If the administrator wants it, she can put it in the preferences, with the proper value filled.
= language = <meta name="language" content="en" /> (from XWiki.XWikiPreferences)
It is actually redundant with <html lang="en">.
I propose to remove it.
What do you think?
Thanks,
-- Guillaume Delhumeau ([email protected]) Research & Development Engineer at XWiki SAS Committer on the XWiki.org project
-- Guillaume Delhumeau ([email protected]) Research & Development Engineer at XWiki SAS Committer on the XWiki.org project