Mozilla.com

  1. MDC
  2. Main Page
  3. Parsing HTML From Chrome

Parsing HTML From Chrome

Table of contents
No headers

From: http://groups.google.com/group/mozil...054cb4e9fc0ed2

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/...5915ce28c35501
http://groups-beta.google.com/group/...88aa78b1eea2a5

You can use the hidden iframe trick to parse the HTML.

Firefox's microsummary service uses a hidden iframe to parse HTML. See the MicrosummaryResource object in nsMicrosummaryService.js.

Page last modified 10:25, 22 Oct 2007 by Nickolay

Tags:

Files (0)