@ -368,6 +371,9 @@ Possible errors are listed below:
The primary object on the page is returned in the `data` property. This will indicate the type of object (e.g. `entry`), and will contain the vocabulary's properties that it was able to parse from the page.
* `type` - the Microformats 2 vocabulary found for the primary object on the page, without the `h-` prefix (e.g. `entry`, `event`)
* `post-type` - only for "posts" (e.g. not for `card`s) - the [Post Type](https://www.w3.org/TR/post-type-discovery/) of the post (e.g. (`note`, `photo`, `reply`))
If a property supports multiple values, it will always be returned as an array. The following properties support multiple values:
* `in-reply-to`
@ -375,7 +381,7 @@ If a property supports multiple values, it will always be returned as an array.
* `repost-of`
* `bookmark-of`
* `syndication`
* `photo` (of entry, not of a card)
* `photo` (of an entry, not of a card)
* `video`
* `audio`
* `category`
@ -386,6 +392,27 @@ The author will always be set in the entry if available. The service follows the
All URLs provided in the output are absolute URLs. If the source document contains a relative URL, it will be resolved first.
#### Post Type Discovery
XRay runs the [Post Type Discovery](https://www.w3.org/TR/post-type-discovery/) algorithm and also includes a `post-type` property.
The following post types are returned, which are slightly expanded from what is currently documented by the Post Type Discovery spec.
$this->assertEquals('<p>Lots of good feedback on <a href="http://help.micro.blog/2017/wordpress-import/">the WordPress import</a>. Made a couple improvements this morning. Overall, pretty good.</p>',$data->items[9]->content->html);
$this->assertEquals('Lots of good feedback on the WordPress import. Made a couple improvements this morning. Overall, pretty good.',$data->items[9]->content->text);
@ -217,6 +222,7 @@ class FeedTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('Day 18. Maple and Spruce #100daysofmusic #100daysproject #the100dayproject https://aaronparecki.com/2017/01/07/14/day18',$data['data']['content']['text']);
$this->assertEquals('This page has a link to target.example.com and some formatted text.',$data->data->content->text);
$this->assertEquals('This page has a link to <a href="http://target.example.com">target.example.com</a> and some <b>formatted text</b>.',$data->data->content->html);
}
@ -244,6 +254,7 @@ class ParseTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('This page has a link to target.example.com and some formatted text.',$data->data->content->text);
$this->assertEquals('This page has a link to <a href="http://target.example.com">target.example.com</a> and some <b>formatted text</b>.',$data->data->content->html);
}
@ -256,6 +267,7 @@ class ParseTest extends PHPUnit_Framework_TestCase {