-
Notifications
You must be signed in to change notification settings - Fork 89
[Feature Request] Add support for HTMLRewriter #138
Comments
Hi @Cherry! Unfortunately cloudworker is no longer actively maintained at DSC, so this is unlikely to be looked at in the near future. Perhaps we will find a volunteer at some point. |
The HTMLRewriter could be integrated using cloudflare/lol-html#38 |
Thanks to @defjosiah I have a bit more complete HTMLRewriter shim: https://gist.github.com/grakic/b25d54f27223154023cfb3042ab66d41 Use locally with webpack.dev.js as:
There are differences like in how it handles |
@grakic that looks great! Thanks for extending it. Will replace our mock with that 😄 |
I'm going to go ahead and close this. Cloudflare's |
In case someone's still looking for a HTMLRewriter polyfill, here is another one: https://github.com/worker-tools/parsed-html-rewriter |
Testing
HTMLRewriter
locally would be really awesome. Currently,ReferenceError: HTMLRewriter is not defined
is just thrown when attempting to use it.Reference: https://developers.cloudflare.com/workers/reference/apis/html-rewriter/
Cloudflare do publish the source for this too, at https://github.com/cloudflare/lol-html
The text was updated successfully, but these errors were encountered: