-
Notifications
You must be signed in to change notification settings - Fork 151
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
parser plugins should parse top-level unknown and void elements #494
Comments
I've just run into this too. I'd like to be able to parse I have a similar problem where a |
closes bustle#494 - run parser plugins for the top-level section elements - do not continue parsing children elements if a parser marks the top-level element as finished - update tests to double-check the output for top-level elements is unchanged
closes bustle#494 - run parser plugins for the top-level section elements - do not continue parsing children elements if a parser marks the top-level element as finished - update tests to double-check the output for top-level elements is unchanged
closes bustle#494 - run parser plugins for the top-level section elements - do not continue parsing children elements if a parser marks the top-level element as finished - update tests to double-check the output for top-level elements is unchanged
The Section parser first infers a section type for a given element before attempting to parse its child nodes, and it only runs its parser plugins against the child nodes. This means that HTML with root-level elements do not get run through the plugins. This happens (in slightly different ways) with both void elements and elements with childNodes:
parse('<video>...</video>')
— plugins skip<video>
parse('<video>')
— plugins skipvideo
The text was updated successfully, but these errors were encountered: