[Project_owners] How to create DOM element/node in XPCOM JS component?

Eric H. Jung eric.jung at yahoo.com
Wed May 24 15:16:36 EDT 2006


I use the following code in overlays to create a DOM element:

  var doc = document.implementation.createDocument("", "", null);
  var foxyproxyElem = doc.createElement("foxyproxy");

But this code doesn't work in an XPCOM JS component--there is no
document. Is there an XPCOM service which can do this? If not, any
other way?

Thanks for any ideas,

More information about the Project_owners mailing list