-
Notifications
You must be signed in to change notification settings - Fork 658
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
[cssom] Accessing the DOM of images #1568
Comments
On 25 June 2017 at 23:20, Henrik Andersson henke@henke37.cjb.net wrote:
I'm not an implementer, but I assume that currently SVGs integrated into a page via CSS don't have a DOM.
Note that you can already access the DOM of SVGs by integrating the SVG code directly in the HTML. Sebastian |
IIUC, engines need to create document, as well as DOM stuff, for SVG-as-image. Although browsers already create that, it may still impact speed and memory depending on how it would behave. For example, if there are multiple image referring the same SVG file, would mutating one changes others? Either true or false, there could be lots of things to do if an engine tries to reuse one document everywhere. |
SVGs do have a DOM. Depending on how the SVG is included in other content, that DOM may or may not be available. See the definitions for 'secure animated mode' and 'secure static mode': |
Moved from https://lists.w3.org/Archives/Public/www-style/2017Jun/0029.html, posted by Henrik Andersson.
One thing I've realized is that css allows for the use of SVG images.
And those have a DOM of their own. It'd be interesting if it was
possible to access the DOM of the image in javascript. The user agent
already needs to have it anyway.
The text was updated successfully, but these errors were encountered: