This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29792 - Make embedded (X)HTML or SVG documents in <object> accessible
Summary: Make embedded (X)HTML or SVG documents in <object> accessible
Status: NEW
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 24121
  Show dependency treegraph
 
Reported: 2016-08-24 16:53 UTC by comfreek
Modified: 2016-09-19 15:45 UTC (History)
3 users (show)

See Also:


Attachments

Description comfreek 2016-08-24 16:53:55 UTC
It is currently not possible to access objects embedded in <object> 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 <object> is that I can quickly replace it by setting the data URI while maintaining access to its contents via contentDocument.