Skip to content

Non-recognized root class aborts element processing #230

@josineto

Description

@josineto

Hi! I'm trying to implement microformats2 in my website, which uses Tailwind as CSS framework. In that framework, there are classes such as h-4, h-12 etc (specifying height CSS property on element).

Problem is: when I try to validate my h-card, the parsing of an element is aborted when those Tailwind classes are present. A small example follows:

<div class="h-card">
  <img class="u-photo w-32 h-32" alt="Jon Doe"
       src="/image.jpg"/>
</div>

The photo property is not recognized; but if one removes h-32 class, photo is recognized. I tried this example on two different pages: Barnaby Walters' and pin13.net, and the results are the same.

It seems php-mf2 (used on those 2 pages) aborts the processing of an element when it finds a non recognized root class (which, in this case, isn't even a microformats2 class). This is problematic, I think, since HTML classes are not used only by microformats2.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions