Bug 15084
Summary: | Blizzard fan art pages don't work because of lack of Document.load | ||
---|---|---|---|
Product: | WebKit | Reporter: | Darin Adler <darin> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ap, cdumez, hyatt, sam |
Priority: | P2 | Keywords: | InRadar |
Version: | 523.x (Safari 3) | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://www.blizzard.com/inblizz/fanart/ScreenShot.shtml |
Darin Adler
The Blizzard fan art pages seem to have been recently updated. The page at <http://www.blizzard.com/inblizz/fanart/ScreenShot.shtml> fails with a JavaScript exception.
There's a function call importXML:
function importXML()
{
if (document.implementation && document.implementation.createDocument)
{
xmlDoc = document.implementation.createDocument("", "", null);
xmlDoc.onload = addEntries;
}
else if (window.ActiveXObject)
{
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.onreadystatechange = function () {
if (xmlDoc.readyState == 4) addEntries()
};
}
else
{
alert('Your browser can\'t handle this script');
return;
}
xmlDoc.load("Web.xml");
}
I'd normally expect to see something like this done with XMLHttpRequest.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Darin Adler
Annoying. I use this website a lot.
Darin Adler
<rdar://problem/5438730>
Dave Hyatt
We really need to support document.load. It's standard DOM 3.
Dave Hyatt
But yeah, the site could easily use XMLHttpRequest and work everywhere.
Darin Adler
(In reply to comment #3)
> We really need to support document.load. It's standard DOM 3.
I decided to look this up in DOM 3, and I couldn't find it.
What I found for load and save was this: <http://www.w3.org/TR/DOM-Level-3-LS/>. It seems to me like a simple "load" function on Document is not part of it. Instead the function is called createLSParser. Am I missing something? Where's the plain old "load" for Document?
I'm getting the impression that this is not DOM 3 load at all, but rather something else that's implemented by Gecko.
Sam Weinig
I believe it was in DOM 3 L/S at one point, but has since been removed.
Alexey Proskuryakov
See also: bug 9063.
David Kilzer (:ddkilzer)
(In reply to comment #7)
> See also: bug 9063.
And:
Bug 5411
Bug 14518
Bug 14589
Darin Adler
The Blizzard folks fixed this. Thanks guys!
Lucas Forschler
Mass moving XML DOM bugs to the "DOM" Component.