<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29792</bug_id>
          
          <creation_ts>2016-08-24 16:53:55 +0000</creation_ts>
          <short_desc>Make embedded (X)HTML or SVG documents in &lt;object&gt; accessible</short_desc>
          <delta_ts>2016-09-19 15:45:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>24121</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>comfreek</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>comfreek</cc>
    
    <cc>dburns</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>127226</commentid>
    <comment_count>0</comment_count>
    <who name="">comfreek</who>
    <bug_when>2016-08-24 16:53:55 +0000</bug_when>
    <thetext>It is currently not possible to access objects embedded in &lt;object&gt; tags:

&lt;object data=&quot;file.svg&quot; type=&quot;image/svg+xml&quot;&gt;&lt;/object&gt;
&lt;object data=&quot;file.html&quot; type=&quot;text/html&quot;&gt;&lt;/object&gt;
&lt;object data=&quot;file.xhtml&quot; type=&quot;application/xml+xhtml&quot;&gt;&lt;/object&gt;

First, none of the locator strategies are able to &quot;deep-select&quot; 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 &quot;stale element reference&quot; error upon usage of the acquired reference. This could be solved if a switch to an object&apos;s contentDocument context was possible.

My use case in my application for embedding an SVG via &lt;object&gt; is that I can quickly replace it by setting the data URI while maintaining access to its contents via contentDocument.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>