Commit ad1ee037 authored by Barnaby Walters's avatar Barnaby Walters

Added hproduct backcompat mapping, basic test

parent ab9295b1
......@@ -1012,7 +1012,8 @@ class Parser {
'hrecipe' => 'h-recipe',
'hresume' => 'h-resume',
'hevent' => 'h-event',
'hreview' => 'h-review'
'hreview' => 'h-review',
'hproduct' => 'h-product'
);
public $classicPropertyMap = array(
......@@ -1104,6 +1105,17 @@ class Parser {
'best' => 'p-best',
'worst' => 'p-worst',
'description' => 'p-description'
),
'hproduct' => array(
'fn' => 'p-name',
'photo' => 'u-photo',
'brand' => 'p-brand',
'category' => 'p-category',
'description' => 'p-description',
'identifier' => 'u-identifier',
'url' => 'u-url',
'review' => 'p-review h-review',
'price' => 'p-price'
)
);
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment