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

Feature request: Transform stream #222

Closed
adius opened this issue Nov 9, 2017 · 2 comments
Closed

Feature request: Transform stream #222

adius opened this issue Nov 9, 2017 · 2 comments
Milestone

Comments

@adius
Copy link

adius commented Nov 9, 2017

I want to use parse5 as a middleware to transform HTML in a pipeline

@inikulin
Copy link
Owner

inikulin commented Nov 9, 2017

Hi, I've had thoughts about this as well. But note that such transform stream will operate on tokens (like SAXParser), so information about nodes nesting will not be available.

@adius
Copy link
Author

adius commented Nov 9, 2017

That's fine. It's enough for simple things like adding an element before the closing head or body tag, modifying links or changing scripts.

@inikulin inikulin added this to the 5.0 milestone Apr 16, 2018
@inikulin inikulin removed this from the 5.0 milestone Apr 25, 2018
@inikulin inikulin added this to the 5.0 milestone May 17, 2018
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

2 participants