Parsing HTML From Chrome

  • Revision slug: Parsing_HTML_From_Chrome
  • Revision title: Parsing HTML From Chrome
  • Revision id: 54005
  • Created:
  • Creator: Shaver
  • Is current revision? No
  • Comment

Revision Content

From: http://groups.google.com/group/mozilla.dev.extensions/browse_thread/thread/55662db3ea44a198/fe054cb4e9fc0ed2#fe054cb4e9fc0ed2

On 13 Nov 2006 04:43:08 -0800, Chen Zhiyuan <gsm.chenzhiyuan@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
> string?

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.

Revision Source

<p>From: http://groups.google.com/group/mozilla.dev.extensions/browse_thread/thread/55662db3ea44a198/fe054cb4e9fc0ed2#fe054cb4e9fc0ed2
</p>
<pre class="eval">On 13 Nov 2006 04:43:08 -0800, Chen Zhiyuan &lt;gsm.chenzhiyuan@gmail.com&gt; wrote:
&gt; It seems that the DOMParser does not support parse a html string into
&gt; HTMLDocument? Is there a way to create the Document with a given
&gt; string?

http://groups-beta.google.com/group/netscape.public.mozilla.dom/browse_thread/thread/bc3a1121c18023a4/f75915ce28c35501?lnk=st&amp;q=parse+html+author%3Azbarsky&amp;rnum=2#f75915ce28c35501
http://groups-beta.google.com/group/netscape.public.mozilla.dom/browse_thread/thread/126739f8904f94d9/4988aa78b1eea2a5?lnk=st&amp;q=parse+html+author%3Azbarsky&amp;rnum=1#4988aa78b1eea2a5

You can use the hidden iframe trick to parse the HTML.
</pre>
Revert to this revision