Skip to content
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

Fixed issue parsing elements with mixed valid and invalid mf2 classnames #231

Merged
merged 1 commit into from
Feb 25, 2022

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