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

Rewrite HTMLFilter interface to use HTML::Tree #51

Open
gflohr opened this Issue Oct 15, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@gflohr
Owner

gflohr commented Oct 15, 2018

The HTMLFilter interface currently runs HTML::Parser over the document and lets the plug-ins install handlers for the various events. That is not flexible enough.

It's better to use HTML::Tree so that plug-ins have a chance to evaluate context.

Incompatible change that is unlikely to break existing sites.

@gflohr gflohr added this to the MVP1 milestone Oct 15, 2018

@gflohr gflohr self-assigned this Oct 15, 2018

@gflohr

This comment has been minimized.

Owner

gflohr commented Oct 31, 2018

Probably the better option would be to try interfacing with https://cheerio.js.org/ so that you can use jQuery style DOM manipulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment