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

Rewrite HTMLFilter interface to use HTML::Tree #51

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

Rewrite HTMLFilter interface to use HTML::Tree #51

gflohr opened this issue Oct 15, 2018 · 1 comment
Assignees
Milestone

Comments

@gflohr
Copy link
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
Copy link
Owner Author

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
Projects
None yet
Development

No branches or pull requests

1 participant