-
Notifications
You must be signed in to change notification settings - Fork 40
Description
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.