https://bugzilla.wikimedia.org/show_bug.cgi?id=28776

--- Comment #5 from Aryeh Gregor <[email protected]> 2011-06-13 
20:06:41 UTC ---
(In reply to comment #0)
> Could we get the global microdata ( http://www.w3.org/TR/html5/microdata.html 
> )
> attributes, @itemscope, @itemid, @itemtype, @itemprop, and @itemref
> whitelisted

This just requires turning $wgAllowMicrodataAttributes on.  Note that $wgHtml5
must also be on for it to do anything.

> as well as allow meta tags (
> http://www.w3.org/TR/html5/semantics.html#meta ), now allowable in the body of
> a document with HTML5, with @name and @content attributes (in addition to the
> global ones just mentioned available on all elements)? 

<link> and <meta> can only be used in the body if itemprop is specified.  In
those cases, we should whitelist them (assuming microdata is enabled) but
currently don't.  It should be pretty easy to add support to Sanitizer.php.  I
could probably do this if microdata is actually going to be enabled by default,
especially if it's going to be enabled on Wikimedia wikis.  As long as it
happens soon -- I'll be unavailable starting a few months from now.

> The HTML5 spec even specifies a (Mediawiki) wiki for making official 
> extensions
> (at http://wiki.whatwg.org/wiki/MetaExtensions ), so extensions could become
> "standard extensions" in convenient wiki fashion (while allowing @itemtype to
> indicate namespaced extensions), in cases where the Wikimedia community wished
> to reuse a particular meta property.

That's only for <meta name="">, which is only allowed in the head, so it's not
relevant to us.  The spec mandates no central repository for microdata
vocabularies.

> I should point out too that microdata is not only something which those using
> custom client-side jQuery or XQuery or one-off server-side parsers can take
> advantage of--it is already implemented by prominent crawlers such as Google:
> http://www.google.com/webmasters/tools/richsnippets (see also
> http://googlewebmastercentral.blogspot.com/2010/03/microdata-support-for-rich-snippets.html
> ).

And Bing and Yahoo!, yes.  I think it should be enabled by default, but I'm not
going to do it unless I get the okay from someone in charge, since previously
there was disagreement about it.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to