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

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.

Dantman's comment:

So that an extension can actually write `$out->addMeta( 'property:og:title', 
'Foo' );` and be sure that it's actually implemented and they're actually going 
to get <meta property="og:title" content="Foo"> and not <meta 
name="property:og:title" content="Foo">. Because you can't use class_exists or 
method_exists to test for this feature like you can with others.

eg: 
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/OpenGraphMeta/OpenGraphMeta.php?r1=111441&r2=111440&pathrev=111441

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

Reply via email to