Comments (7)
This is the correct behaviour if no explicit p-name is provided, as detailed here. It can be fixed by simply providing an explicit p-name :)
from php-mf2.
That blog looks great though, thanks for the link!
from php-mf2.
you're welcome :)
from php-mf2.
I've updated my theme with p-name and e-description but there is still a strange behaviour:
[type] => Array
(
[0] => h-feed
)
[properties] => Array
(
[author] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
)
[name] => Array
(
[0] => notizBlog
)
[content] => Array
(
[0] => a weblog about the open, portable, social, synaptic, semantic, structured, distributed, decentralized, microformatted and federated social web
)
)
It seems that the parser tries to use the h-entry "authors" for the h-feed too.
from php-mf2.
...and the author array includes only empty strings
from php-mf2.
@pfefferle okay, just got round to having a proper look at this. Looks like you’re installing the latest stable (tagged) version, which is from quite a while ago. The dev-master branch has the latest version in, which is much faster and more reliable, although doesn’t handle some edge case datetimes properly. This is very much a work in progress, bear with me and thanks for helping test it!
from php-mf2.
I am still confused by the parsing results. The parser still uses all h-entry authors for h-feed:
[0] => Array
(
[type] => Array
(
[0] => h-feed
)
[properties] => Array
(
[author] => Array
(
[0] => Array
(
[value] => Matthias Pfefferle
)
[1] => Array
(
[value] => Matthias Pfefferle
)
[2] => Array
(
[value] => Matthias Pfefferle
)
and it also uses all e-contents of each h-entry for h-feed.
[content] => Array
(
[0] => a weblog about the open, portable, social, synaptic, semantic, structured, distributed, decentralized, microformatted and federated social web
[1] =>
<img alt="" class="u-photo avatar avatar-40 photo" height="40" src="http://1.gravatar.com/avatar/b36983a5651df2c413e264ad4d5cc1a1?s=40&d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D40&r=G" width="40"></img><p>WordPress seems to support basic <a href="http://indiewebcamp.com/comment">IndieWeb-Comments</a> out of the box!</p>
<p><small>in reply to @<a href="http://eschnou.com/entry/testing-indieweb-federation-with-waterpigscouk-aaronpareckicom-and--62-24908.html" rel="in-reply-to">eschnou.com</a></small></p>
I think this might be a general problem of nested microformats and it makes interpreting the results very hard.
from php-mf2.
Related Issues (20)
- Try to parse any file with the HTML parser HOT 1
- ParsefromID should include the element it is Parsing HOT 1
- wrong order of property values (if nested object is present?)
- parse an img element for src and alt HOT 1
- Correcting tags in content HOT 7
- Parser returns empty string/unicode entity HOT 3
- Migrating from travis-ci.org due to shutdown HOT 1
- Review test matrix and fix failing tests
- Non-recognized root class aborts element processing HOT 6
- Improve main parser entry point API and config
- Proposal: enable language parsing by default
- Add img srcset parsing
- Fix parsing class properties with newlines
- Properties not parsed when using Tailwind height class HOT 2
- This HTML fragment produces an endless loop in public function parse_recursive HOT 1
- properties with invalid names are not properly ignored HOT 5
- mb_convert_encoding() throws error in PHP 8.1 HOT 1
- Introduce Metaformats Support
- Remove unused deprecated functions
- Improve parse_url usage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-mf2.