I know there are bridges between JS and DOM APIs, so i just wonder how to create and use such runtime XPCOM objects, any sample codes available online? All i can find are XPCOM in shared lib format :(
On Thu, Jun 4, 2009 at 10:46 AM, Boris Zbarsky <[email protected]> wrote: > Harry Zhang wrote: > >> Is XPCOM can also be used as runtime objects that can be "new" in codes >> > > Yes, of course. How do you think the DOM is implemented in Gecko, for > example? C++ objects that implement various scriptable interfaces based on > the W3C DOM interfaces. I can assure you that <body> elements are created > at runtime all the time, using |new|. > > > -Boris > _______________________________________________ > dev-embedding mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-embedding > _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
