svnlabs / google-caja

Automatically exported from code.google.com/p/google-caja
0 stars 1 forks source link

Whitelist itemtype, itemid for microdata #1950

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
User request for support for "microdata" attributes:
https://groups.google.com/forum/#!topic/google-caja-discuss/rNSAroM9MIU

Example markup I generated using the tool at 
<https://www.google.com/webmasters/markup-helper/>:

<!-- Microdata markup added by Google Structured Data Markup Helper. -->
<html><head></head><body>
<span itemscope itemtype="http://schema.org/Article"><p 
itemprop="aggregateRating" itemscope 
itemtype="http://schema.org/AggregateRating">Testing 
<span itemprop="ratingValue">123</span></p></span></body></html>

Currently, "itemtype" and "itemid" are not whitelisted; they were not included 
in the original HTML5-whitelisting pass because they have URI values but should 
not be rewritten by the URI policy (since they're URIs-as-global-names).

Original issue reported on code.google.com by kpreid@google.com on 2 Jan 2015 at 7:15