Re: Load XML from content
Neil Deakin <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Boris Zbarsky wrote: > Neil Deakin wrote: >> What is the best API to use to start off an asynchronous document load? > > Another option, I guess is to use nsIDOMXMLDocument (set async to true > and call load()). I guess you'd want to watch for the onload event on > the document, then.... or something. It's hard to get this right in > general without leaking; XBL fails for example. :( > That's the technique I've been using currently. What will leak? Something to do with the event listener? / Neil