Comments (5)
While looking at this bug, please also consider:
- http://microformats.org/wiki/microformats2-parsing-issues#uf2_children_on_backcompat_properties
- http://microformats.org/wiki/microformats2-parsing-issues#uf2_children_inside_a_classic_microformats_root_class_name
from php-mf2.
In particular, as noted in http://microformats.org/wiki/microformats2-parsing#parse_an_element_for_properties :
- parse child elements (document order) by:
- if parsing a backcompat root, parse child element class name(s) for backcompat properties
- else parse a child element class for property class name(s) "p-,u-,dt-,e-"
In particular note that only when parsing a backcompat root, should any backcompat properties be parsed.
from php-mf2.
Discussion today about only implying properties on mf2 roots, no backcompat roots: https://indiewebcamp.com/irc/2016-05-18#t1463596806212
I can take a stab at some of this.
from php-mf2.
This just got bumped up in my priority list. Since I added hReview markup to my review posts to get them to show up as Google Rich Snippets, the mf2 parsed version of the posts are a total mess. Take a look at this example:
It's kind of a giant mess of duplicated objects and values appearing in bizarre places.
from php-mf2.
I am for this even if some parsers have an override.
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.