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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25664</bug_id>
          
          <creation_ts>2009-05-09 14:29:26 -0700</creation_ts>
          <short_desc>Error at edugis.nl when trying to use XMLDocument.prototype.load</short_desc>
          <delta_ts>2022-08-18 17:19:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>36465</dup_id>
          
          <bug_file_loc>http://www.edugis.nl/index.php?option=com_content&amp;task=view&amp;id=225&amp;Itemid=199</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jack van Soest">jackvans</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>120526</commentid>
    <comment_count>0</comment_count>
    <who name="Jack van Soest">jackvans</who>
    <bug_when>2009-05-09 14:29:26 -0700</bug_when>
    <thetext>Error loading config document: edugisklein.xml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120530</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-05-09 15:00:05 -0700</bug_when>
    <thetext>The problem looks to be related to the site adding a property to XMLDocument.prototype and expecting it to be accessible via &quot;this&quot;, which is an instance of Document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120552</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-05-10 09:43:02 -0700</bug_when>
    <thetext>window.XMLDocument is of course non-standard, but we might be able to alias it to Document if many sites have this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120560</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2009-05-10 11:34:32 -0700</bug_when>
    <thetext>We should already be aliasing window.XMLDocument to DocumentConstructor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>462590</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-06 09:27:59 -0700</bug_when>
    <thetext>So yes, adding a property to XMLDocument.prototype generally does make it accessible on document instances, so there must be something else going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>462700</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-06 11:42:11 -0700</bug_when>
    <thetext>This is because an old version of Sarissa library on this site saves a version of document.load from XMLDocument, and tries to execute it later. Newer versions of Sarissa don&apos;t have this problem.

XMLDocument.prototype._sarissa_load=XMLDocument.prototype.load; // undefined
XMLDocument.prototype.load=function(_1e){
    // lots of code that boils down to simply calling _sarissa_load.
}

There is currently active discussion in &lt;http://www.w3.org/Bugs/Public/show_bug.cgi?id=14037&gt; that may eventually change how we work with such code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890111</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-09 15:02:52 -0700</bug_when>
    <thetext>Some spec work happened and it was made window.XMLDocument was aliased:

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

Later the issue came back up:

https://github.com/whatwg/dom/issues/278

But it was more on Firefox changing and aligning with spec.

From the test case - http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=1130

I see - all browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6) are showing:

log: true
log: true
log: false
log: false
rendering mode: CSS1Compat
document has no title

rniwa@webkit.org &amp; ap@webkit.org - Is something more needed here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892338</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-08-18 17:19:13 -0700</bug_when>
    <thetext>See https://dom.spec.whatwg.org/#xmldocument

*** This bug has been marked as a duplicate of bug 36465 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>