"GWicke" posted a comment on MediaWiki.r111439.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/111439#c31134

Commit summary for MediaWiki.r111439:

Introduce property: and itemprop: support for addMeta to add RDFa <meta 
property="..." content="..."> and Microdata <meta itemprop="..." content="..."> 
to the <head>.
This is done in a way that can also be feature tested, and technically could be 
expanded by extensions.

GWicke's comment:

Sorry- I somehow ignored OutputPageBodyAttributes when first reading it. In 
that case, it appears to be necessary to add an itemref to all itemprops in the 
head to associate them with an itemscope set on the body. This does not seem to 
be possible right now, so this would produce invalid Microdata.

It might be cleaner to set the itemscope on the head instead, and avoid the 
itemref and unwanted scoping on the body that way. Could a simple itemscope be 
implicitly added to the head element whenever a microdata item is added? This 
would make it easier to produce valid microdata.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to