Thank you !
var mytext = "<html><body><p>Hello</p></body></html>"
document.write(mytext);
http://groups-beta.google.com/group/netscape.public.mozilla.dom/browse_thread/thread/bc3a1121c18023a4/f75915ce28c35501?lnk=st&q=parse+html+author%3Azbarsky&rnum=2#f75915ce28c35501
http://groups-beta.google.com/group/netscape.public.mozilla.dom/browse_thread/thread/126739f8904f94d9/4988aa78b1eea2a5?lnk=st&q=parse+html+author%3Azbarsky&rnum=1#4988aa78b1eea2a5
You can use the hidden iframe trick to parse the HTML.
Nickolay
On 11月13日, 下午4时24分, "Nickolay Ponomarev"
<asquee...@gmail.com> wrote:
> On 13 Nov 2006 04:43:08 -0800, Chen Zhiyuan <gsm.chenzhiy...@gmail.com> wrote:
>
> > It seems that the DOMParser does not support parse a html string into
> > HTMLDocument? Is there a way to create the Document with a given
>
> You can use the hidden iframe trick to parse the HTML.
>
> Nickolay
>
>
>
> > Thank you !
>
> > _______________________________________________
> > dev-extensions mailing list
> > dev-extensi...@lists.mozilla.org
> >https://lists.mozilla.org/listinfo/dev-extensions
The microsummary service does this with a hidden iframe. Based on
discussions with the layout guys, this seems to be the best way of doing
it currently.
-myk
I made a Stub out of this for MDC:
http://developer.mozilla.org/en/docs/Parsing_HTML_From_Chrome
Mike