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

Clean elements before cleaning styles #180

Merged
merged 1 commit into from
May 17, 2018

Conversation

rafbm
Copy link
Contributor

@rafbm rafbm commented May 16, 2018

So CPU will no longer be wasted cleaning style="" attributes on non-permitted elements, nor cleaning <style> contents if <style> elements are not permitted.

I haven’t created a benchmark or sample script to prove the above claim, but looking at the code it seems pretty clear what’s happening. I made the change and all specs were still green, so I figured I would just submit this as-is.

So CPU will no longer be wasted cleaning style="" attributes on non-permitted elements, nor cleaning <style> contents if <style> elements are not permitted.
@rgrove rgrove merged commit fc82e96 into rgrove:master May 17, 2018
@rgrove
Copy link
Owner

rgrove commented May 17, 2018

Thanks!

@rafbm rafbm deleted the clean-elements-before-styles branch May 17, 2018 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants