Skip to content

Conversation

@barnabywalters
Copy link
Collaborator

@barnabywalters barnabywalters commented Feb 23, 2022

Previously, an element with an invalid root classname such as h-12 would
correctly not get parsed into a h-12-type mf struct, but the h-12 would
prevent the element from being parsed for valid classnames. This is now fixed.

In the process, I improved some inconsistent logic for determining whether an element has root MF classes, and enabled PHP functions to be registered on the parser DOMXPath object.

Fixes #230

…mes on

Previously, an element with an invalid root classname such as  would
correctly not get parsed into a -type mf struct, but the h-12 would
prevent the element from being parsed for valid classnames. This is now fixed.
@barnabywalters barnabywalters merged commit f30a684 into microformats:main Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-recognized root class aborts element processing

1 participant