<?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>25940</bug_id>
          
          <creation_ts>2014-06-01 10:39:18 +0000</creation_ts>
          <short_desc>Please define getSVGDocument</short_desc>
          <delta_ts>2014-09-24 20:14:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#htmlobjectelement</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>cam</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107097</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-06-01 10:39:18 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html
Multipage: http://www.whatwg.org/C#htmlobjectelement
Complete: http://www.whatwg.org/c#htmlobjectelement
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Please define getSVGDocument

Posted from: 87.64.200.82 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107145</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-06-02 18:15:46 +0000</bug_when>
    <thetext>Isn&apos;t that specced by the SVG spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107180</commentid>
    <comment_count>2</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2014-06-03 07:25:23 +0000</bug_when>
    <thetext>Definitely not in the detail I&apos;d like to see. ISTR that it was discussed before, and the SVG people were happy to have it specced in HTML; that&apos;d also make it easier to make sure that all elements that need it get it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107213</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-06-03 17:33:01 +0000</bug_when>
    <thetext>If the SVG WG wants to transfer ownership of this API to HTML, I&apos;m happy to spec it. Can I get confirmation from an SVG spec editor?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107339</commentid>
    <comment_count>4</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2014-06-05 12:24:53 +0000</bug_when>
    <thetext>I don&apos;t mind too much where getSVGDocument lives, if we do indeed need to keep it.  I&apos;d love to see some usage data for it.

As it will be pretty much an alias for contentDocument, it would be simpler if it was defined in HTML.  Let me bring it up on the SVG group&apos;s list just to see if anyone has any objections moving it over.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107340</commentid>
    <comment_count>5</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2014-06-05 12:32:21 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/public-svg-wg/2014AprJun/0083.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110001</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-08-06 18:26:39 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8713.
Check-in comment: getSVGDocument()
http://html5.org/tools/web-apps-tracker?from=8712&amp;to=8713</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110016</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-07 04:53:29 +0000</bug_when>
    <thetext>It&apos;s needed for at least object and iframe as well. Maybe frame also.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3103</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110017</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-07 05:14:15 +0000</bug_when>
    <thetext>Also, step 3 seems unnecessarily restrictive. At least Blink/Gecko/Presto returns the document after the element has been further navigated, even to a non-SVG document. (Haven&apos;t tested IE.)

It seems like Safari 7.0.5 returns null if the document is not an SVGDocument, but it returns the document after navigation to another SVG.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3105

For iframe, Presto/Gecko just always returns the document, but WebKit/Blink return null for non-image/svg+xml it seems.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3108</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111445</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-12 17:32:08 +0000</bug_when>
    <thetext>The current step 3 was based on this:
   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3102

            document   xml     svg      svg-as-xml  xml-as-svg
  Chrome    null       null    object   null        object
  Firefox   object     object  object   object      error*
  Safari    null       null    object   null        object

* it&apos;s trying to cast the XMLDocument to SVGDocument.

In all cases, what matters is the currently loaded document, not what the &lt;embed&gt; originally pointed to. &quot;Blink/Gecko/Presto returns the document after the element has been further navigated, even to a non-SVG document&quot; appears to be false for Blink, at least in the case of navigating to a non-SVG document without an SVG MIME type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111667</commentid>
    <comment_count>10</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-09-17 07:14:42 +0000</bug_when>
    <thetext>You&apos;re right. I think I also misread the spec, I thought it would always return null after further navigation but it seems that is not the case. So I think it&apos;s OK, just need it on the other elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112106</commentid>
    <comment_count>11</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-09-24 19:02:53 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8811.
Check-in comment: Add getSVGDocument() to object and iframe also, with the same definition as for embed.
https://html5.org/tools/web-apps-tracker?from=8810&amp;to=8811</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112117</commentid>
    <comment_count>12</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-09-24 20:11:13 +0000</bug_when>
    <thetext>It needs to be nullable in the IDL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112119</commentid>
    <comment_count>13</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-09-24 20:14:29 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8814.
Check-in comment: getSVGDocument() can return null (IDL fix).
https://html5.org/tools/web-apps-tracker?from=8813&amp;to=8814</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>