-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
bugfix: Sort attributes to make rr_* attributes handled last
#970
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
Conversation
`rr_dataURL` overwrites `src` attribute, because of this we need to evaluate `rr_dataURL` last so it doesn't accidentally get overwritten again.
rr_* attributes handled lastrr_* attributes handled last
|
Had a chat with @eoghanmurray and @Mark-Fenng, I'm going to do a refactor which eliminates the loop overhead. |
Be a little more strict when it comes attribute types
eoghanmurray
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you've got the alternative version without the specialAttributes array, but with the boolean flag?
@eoghanmurray I did some performance tests and this one was faster so I ended up going with this |
|
Cool, happy to approve! |
|
@eoghanmurray thanks Eoghan! Yes it was from our chat initially. But it got deleted and then came back again |
YunFeng0817
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! A clean and performant version.
rr_dataURLoverwritessrcattribute, because of this we need to evaluaterr_dataURLlast sosrcdoesn't accidentally get overwritten again.