Closed niaeashes closed 4 months ago
This is absolutely an oversight. Thank you for reporting.
Thank you for your response.
I could not read up to the intent of the code in this area, so I will wait for it to be corrected. I apologize for not being able to help you.
No problem at all. I begun a fix but life got in the way!
I cannot determine if this is a bug or intentional, but it seems that node_filters are being applied twice.
The relevant code is in the following section:
https://github.com/gjtorikian/html-pipeline/blob/bf9bbb73b35dee5c60c827522e0a619106532912/lib/html_pipeline.rb#L178-L193
node_filters are applied twice by Selma::Rewriter in both
call_node_filters.html_pipeline
andsanitization.html_pipeline
.Should NodeFilter be implemented to be idempotent, or is this a bug that needs to be addressed?
Thank you for your assistance.