RESOLVED DUPLICATE of bug 36465 25664
Error at edugis.nl when trying to use XMLDocument.prototype.load
https://bugs.webkit.org/show_bug.cgi?id=25664
Summary Error at edugis.nl when trying to use XMLDocument.prototype.load
Jack van Soest
Reported 2009-05-09 14:29:26 PDT
Error loading config document: edugisklein.xml
Attachments
Mark Rowe (bdash)
Comment 1 2009-05-09 15:00:05 PDT
The problem looks to be related to the site adding a property to XMLDocument.prototype and expecting it to be accessible via "this", which is an instance of Document.
Alexey Proskuryakov
Comment 2 2009-05-10 09:43:02 PDT
window.XMLDocument is of course non-standard, but we might be able to alias it to Document if many sites have this problem.
Sam Weinig
Comment 3 2009-05-10 11:34:32 PDT
We should already be aliasing window.XMLDocument to DocumentConstructor.
Alexey Proskuryakov
Comment 4 2011-09-06 09:27:59 PDT
So yes, adding a property to XMLDocument.prototype generally does make it accessible on document instances, so there must be something else going on.
Alexey Proskuryakov
Comment 5 2011-09-06 11:42:11 PDT
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'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 <http://www.w3.org/Bugs/Public/show_bug.cgi?id=14037> that may eventually change how we work with such code.
Ahmad Saleem
Comment 6 2022-08-09 15:02:52 PDT
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 & ap@webkit.org - Is something more needed here?
Alexey Proskuryakov
Comment 7 2022-08-18 17:19:13 PDT
See https://dom.spec.whatwg.org/#xmldocument *** This bug has been marked as a duplicate of bug 36465 ***
Note You need to log in before you can comment on or make changes to this bug.