Permalink
Browse files

The tool now reads values from <meta> elements, as per section 5.2.4 …

…of the spec.
  • Loading branch information...
1 parent 198c455 commit 15f8cdc939df6d9598038225ec1ca797ac98ac82 @steveluscher steveluscher committed Mar 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 jquery.microdata.js
View
@@ -115,7 +115,9 @@
for (i = 0; i < propname.length; i++) {
v = $p.text();
- if ($p.is('a,area,link')) {
+ if ($p.is('meta')) {
+ v = $p.attr('content');
+ } else if ($p.is('a,area,link')) {
v = $p.attr('href');
} else if ($p.is('audio,embed,iframe,img,source,video')) {
v = $p.attr('src');

0 comments on commit 15f8cdc

Please sign in to comment.