Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[BUG] Consider removing innerHTML usage #5902
Comments
This comment has been minimized.
This comment has been minimized.
|
You could use |
This comment has been minimized.
This comment has been minimized.
|
Thx for letting me know, and indicating that a PR is welcome. Will have a go at creating one some time soon. |
This comment has been minimized.
This comment has been minimized.
|
Converting the whole @jeroenheijmans I may have a look on these issues, knowing pretty well that part of the code. |
This comment has been minimized.
This comment has been minimized.
|
Okay, thank you for the ping @simonbrunel, I'll hold off for the moment then. Let me know if I can help (e.g. test). |
This comment has been minimized.
This comment has been minimized.
|
@jeroenheijmans if Firefox doesn't complain about |
This comment has been minimized.
This comment has been minimized.
|
@jeroenheijmans can you build #5909 and verify if it fixes this issue? |
This comment has been minimized.
This comment has been minimized.
|
Built that branch and verified my app keeps working as expected, and that the Mozilla add on store doesn't give any warnings anymore. Thanks! |
Expected Behavior
Firefox addons being accepted without warnings around Chart.js.
Current Behavior
Submitting an addon to the Firefox store gives:
When searching through
master, I get one offending line:Chart.js/src/platforms/platform.dom.js
Lines 187 to 205 in 75aa44e
At first glance this seems to be the same usage in the minified build.
Possible Solution
Unsure, but perhaps there's another way to do the same thing in that line?
Steps to Reproduce (for bugs)
Chart.min.jsas acontent_scriptContext
Reviews of such addons tend to take longer, or the addon might even be rejected based on this.
Environment