Re: Convert HTML string into DOM document for manipulation

2005-07-04 Thread Boris Zbarsky
Ken wrote: Do you know of anyway to render the DOMDocument i gotten ? There isn't one, really. You can move its documentElement into another document (the one in the webnavigation), but that's not guaranteed to work right, especially in 1.7 and earlier builds. -Boris _

Re: Convert HTML string into DOM document for manipulation

2005-07-04 Thread Ken
Hi Boris, Do you know of anyway to render the DOMDocument i gotten ? Thanks...hope for yr reply soon! regards, Ken "Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ken Theng wrote: >> Hi all , >> issit possible to load this nsIDOMDocumen

Re: Convert HTML string into DOM document for manipulation

2005-07-03 Thread Boris Zbarsky
Ken Theng wrote: Hi all , issit possible to load this nsIDOMDocument into the nsiWebNavigation ? Cos i need to render the nIDOMDocument i gotten I don't believe you can stick a DOMDocument into a given nsIWebNavigation at the moment -Boris

Re: Convert HTML string into DOM document for manipulation

2005-06-30 Thread Ken Theng
Hi all , issit possible to load this nsIDOMDocument into the nsiWebNavigation ? Cos i need to render the nIDOMDocument i gotten ___ Mozilla-netlib mailing list Mozilla-netlib@mozilla.org http://mail.mozilla.org/listinfo/mozilla-netli

Re: Convert HTML string into DOM document for manipulation

2005-06-30 Thread Christian Biesinger
Hitesh Khamesra wrote: xml = parser.parseFromString(content, "text/xml"); It does not seems to return, exact "nsIDOMDocument " object. Is there any other way to get "nsIDOMDocument " object from HTML text. Erm, it does return an nsIDOMDocument for me: js> parser = Components.classes["@moz

Re: Convert HTML string into DOM document for manipulation

2005-06-30 Thread Fritz Schneider
write() the text to a freshly created hidden iframe and use the resulting Document. ___ Mozilla-netlib mailing list Mozilla-netlib@mozilla.org http://mail.mozilla.org/listinfo/mozilla-netlib

Re: Convert HTML string into DOM document for manipulation

2005-06-30 Thread Hitesh Khamesra
> parser = Components.classes["@mozilla.org/xmlextras/domparser;1"]>   .createInstance(Components.interfaces.nsIDOMParser);> > xml = parser.parseFromString(content, "text/xml");   It does not seems to return,  exact "nsIDOMDocument " object. Is there any other way to get "ns

Re: Convert HTML string into DOM document for manipulation

2005-06-30 Thread pit
On Thu, 30 Jun 2005 10:45:36 +0800, ken wrote: > Now i want to convert this html string into a DOM document so that I can > manipulate it . > How am i suppose to do this ? like this: parser = Components.classes["@mozilla.org/xmlextras/domparser;1"] .createInstance(Components

Convert HTML string into DOM document for manipulation

2005-06-29 Thread ken
Hiya guys, ok guys here the description of my project. Currently, I had created an extension as a TCP server . My extension will listen to client connection and will receive the html string from the client. Now i want to convert this html string into a DOM document so that I can manipulate it .