New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properties not parsed when using Tailwind height class #246
Comments
|
Good catch! The specification is to skip classes with numbers, but it shouldn't be skipping the entire element. Will look into it. |
|
I get a somewhat similar issue with mf2's output: The For a brief moment there I thought the page actually supported some microformats (and a somewhat weird |
I managed to get a minimal example that happened to me while working with Tailwind CSS, but i guess it's more generic to any class that starts with
h-prefix.If i use Tailwind CSS
h-<number>class on some elements that have other microformat classes like in this minimal example with u-logo and u-nickname:The parser skips mf properties and produces :
{ "items": [ { "type": [ "h-card" ], "properties": { "name": [ "TITLE An example alt title\nJohn Doe" ] } } ], "rels": {}, "rel-urls": {}, "debug": { "package": "https://packagist.org/packages/mf2/mf2", "source": "https://github.com/indieweb/php-mf2", "version": "v0.5.0", "note": [ "This output was generated from the php-mf2 library available at https://github.com/indieweb/php-mf2", "Please file any issues with the parser at https://github.com/indieweb/php-mf2/issues", "Using the Masterminds HTML5 parser" ] } }Instead, if I remove h- classes, it's working as expected:
with output:
{ "items": [ { "type": [ "h-card" ], "properties": { "logo": [ { "value": "https://example.com/img.png", "alt": "An example alt title" } ], "nickname": [ "John Doe" ], "name": [ "TITLE An example alt title\nJohn Doe" ] } } ], "rels": {}, "rel-urls": {}, "debug": { "package": "https://packagist.org/packages/mf2/mf2", "source": "https://github.com/indieweb/php-mf2", "version": "v0.5.0", "note": [ "This output was generated from the php-mf2 library available at https://github.com/indieweb/php-mf2", "Please file any issues with the parser at https://github.com/indieweb/php-mf2/issues", "Using the Masterminds HTML5 parser" ] } }This scenario seems to work using the Go implementation
The text was updated successfully, but these errors were encountered: