Hi, folks,
I am trying to make a wiki template to render some meta data of an article. And I want to use HTML5 Microdata to make these metadate machine-readable.
But the problem I found is that XHtml Sanitizer in MediaWiki remove all the attributes needed.
The Microdata spec[1] add below global attribute for almost every html tag: * itemscope * itemtype * itemid * itemref * itemprop
Sometimes a "meta" tag will be used to express an name-value pair which human can not see it.
So, in general, if MediaWiki can use Microdata format, we should relax the Sanitizer for the global attributes and meta tag.
For the global attributes, I think it is no harm, and quite easy to fix.
But for the meta tag, I am not very sure, I don't know whether the search engine still use it or not. If the search engines do not care about it, why not relax the constraints on it?
I know Microformat is compatible with the Sanitizer, but it use the "class" attribute so heavy. You know, class attibute may used for other purpose such as rendering. After comparing, I think microdata is more neat.
Above is my personal proposal. Thanks for your consideration.
Regards, Mingli