-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Don't use object tag (for SVGs) #6162
Comments
the reason we use |
It would be good for #3632, i.e. for creating a strong CSP. Images ( |
Admittedly I'm fairly uncomfortable triaging this one - please discuss vigorously if you think |
working towards a stronger CSP is certainly a good thing, and I don't think I experimented with embedding SVGs straight into the DOM at the time (which may also have other desirable perf benefits), so I think this is worth prioritising higher. |
Not sure how relevant this is there, but currently i am forced to use to solve my issue with appendChild. There is my issue from StackOverflow. |
As per this deprecation we can remove the |
In order to make it good for a CSP (#3632) a big thing is just to remove that object tag. It is usually used to embed flash or other "active content", which nobody uses anymore, so in order to block flash and other nasty things, you have not use the object tag
I also don't see any reason. SVGs are images, so use
svg
.I read this and maybe you use it to manipulate them from teh outside? In this case, BTW, you can always just embed the SVG itself in the HTML, which is a nicer solution than using
object
.The text was updated successfully, but these errors were encountered: