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

Make embedded (X)HTML or SVG documents in <object> accessible #403

Open
andreastt opened this issue Oct 4, 2016 · 0 comments
Open

Make embedded (X)HTML or SVG documents in <object> accessible #403

andreastt opened this issue Oct 4, 2016 · 0 comments
Milestone

Comments

@andreastt
Copy link
Member

andreastt commented Oct 4, 2016

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29792

comfreek:

It is currently not possible to access objects embedded in tags:

<object data="file.svg" type="image/svg+xml"></object>
<object data="file.html" type="text/html"></object>
<object data="file.xhtml" type="application/xml+xhtml"></object>

First, none of the locator strategies are able to "deep-select" elements originating from objectElement.contentDocument.

Second, bypassing the selection problem by executing a custom JS script in order to return the nested elements results in "stale element reference" error upon usage of the acquired reference. This could be solved if a switch to an object's contentDocument context was possible.

My use case in my application for embedding an SVG via is that I can quickly replace it by setting the data URI while maintaining access to its contents via contentDocument.

@andreastt andreastt added this to the Level 2 milestone Oct 4, 2016
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

No branches or pull requests

1 participant