MicrodataPHP icon indicating copy to clipboard operation
MicrodataPHP copied to clipboard

Extract microdata from HTML using PHP. Based on foolip's MicrodataJS implementation of the Microdata DOM API.

Results 8 MicrodataPHP issues
Sort by recently updated
recently updated
newest added

When parsing recipes, so authors create the prepTime/cookTime in different ways. I've updated the MicrodataPhpDOMElement->itemValue to grab the content attribute if it is present, instead of sending the incorrect element...

If the target element of an itemref has an itemscope attribute, it should still be traversed.

I think this makes the returns easier to follow, though it's partly down to preference.

Once the hubbub over the new srcset attribute has died down, I should look into whether to include those values.

The spec editor went to the trouble of [clarifying that itemprops without names shouldn't be added](http://html5.org/tools/web-apps-tracker?from=6853&to=6854), so this code should ensure that they aren't returned.