The example below is not parsing correctly. I would expect the entry "name" to be the empty string. Adding any non-whitespace text to the e-content causes it to revert to expected behavior.
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<div class="h-entry">
<a href="http://this.site/photo" class="u-url"></a>
<div class="e-content p-name"><img src="photo.jpg" class="u-photo"/></div>
Some extraneous text
<div class="h-cite">
<a href="http://someother.site/like" class="u-url"></a>
<a href="http://this.site/photo" class="u-like-of"></a>
<div class="e-content p-name">liked this</div>
</div>
</div>
</body>
</html>
{ items:
[ { type: [ 'h-entry' ],
properties:
{ url: [ 'http://this.site/photo' ],
content: [ { value: '', html: '<img src="photo.jpg" class="u-photo" />' } ],
photo: [ 'photo.jpg' ],
name: [ 'Some extraneous text\r\n\r\n \r\n \r\n \r\n liked this' ] },
children:
[ { value: 'liked this',
type: [ 'h-cite' ],
properties:
{ url: [ 'http://someother.site/like' ],
'like-of': [ 'http://this.site/photo' ],
content: [ { value: 'liked this', html: 'liked this' } ],
name: [ 'liked this' ] } } ] } ],
rels: {},
'rel-urls': {} }
The example below is not parsing correctly. I would expect the entry "name" to be the empty string. Adding any non-whitespace text to the e-content causes it to revert to expected behavior.