Closed
Bug 983090
Opened 11 years ago
Closed 4 years ago
Try to remove document.load
Categories
(Core :: DOM: Core & HTML, task, P5)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 332175
People
(Reporter: Ms2ger, Unassigned)
References
Details
(Keywords: dev-doc-needed, site-compat)
Afaict, Weblinkit and IE don't support it. Time to kill?
Comment 1•11 years ago
|
||
I thought it was in IE at some point, in data documents.
At least it is in the spec http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#loading-xml-documents
Comment 2•11 years ago
|
||
But yes, if we can remove it, great.
Comment 3•11 years ago
|
||
What exact tests did you run to determine IE non-support? Did you try this:
xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.load(whatever);
?
Note the sadfaces at <https://www.w3.org/Bugs/Public/show_bug.cgi?id=14037#c10> though, and <https://www.w3.org/Bugs/Public/show_bug.cgi?id=14037#c14>. But maybe nowadays that library is not used much? We'd have to add some sort of use counter here, no matter what. :(
Reporter | ||
Comment 4•11 years ago
|
||
(In reply to Boris Zbarsky [:bz] from comment #3)
> What exact tests did you run to determine IE non-support? Did you try this:
>
> xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
> xmlDoc.load(whatever);
>
> ?
That does still work in IE. *sigh*.
I think this is another one where I'd like to see some telemetry data before doing anything. Document loading was something that in the past had to be done through browser-specific APIs before we had cross-browser XHR. I would not be surprised if browser-specific codepaths have been cargo-culted forward.
Updated•10 years ago
|
Updated•10 years ago
|
Whiteboard: [good first bug]
Updated•10 years ago
|
Keywords: dev-doc-needed
Comment 6•10 years ago
|
||
This is probably not a good first bug if we need to add usage telemetry and update MDN documentation. :)
Whiteboard: [good first bug]
Comment 7•10 years ago
|
||
Is adding telemetry that hard? It should not be that hard :-(
Comment 8•10 years ago
|
||
No. Adding telemetry probes is easy, and MDN is just a wiki.
Whiteboard: [good first bug]
Comment 9•10 years ago
|
||
Adding telemetry probes is easy. Adding a telemetry probe that measures usage of something on the web is, afaict, hard. I've never figured out how to do it.
Comment 10•10 years ago
|
||
Well, I meant adding telemetry probes technically is easy.
Deciding what to measure is harder.
Comment 11•10 years ago
|
||
I would probably mark the scope object (nsGlobalWindow) to have had document.load usage
if one uses document.load in any of the Document objects bound to that window.
Then in nsGlobalWindow dtor or somewhere have the probe to count the number of
non-chrome content windows which have had document.load usage vs. the windows which haven't had.
Comment 12•10 years ago
|
||
OK, I'd like some confirmation that this is still believed to be a good first bug. If we're uncertain I'll remove that flag, but if you're convinced the answer is yes then put your money where your mouth is and sign on to mentor.
Reporter | ||
Updated•10 years ago
|
Whiteboard: [good first bug]
Updated•8 years ago
|
Keywords: site-compat
Updated•7 years ago
|
Priority: -- → P5
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•5 years ago
|
Type: defect → task
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•