W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2004

Parsing a piece of document

From: Nikolay Georgiev <nikolay.georgiev@netvalue.com>
Date: Tue, 16 Mar 2004 13:17:10 +0100
Message-ID: <4056F046.9000603@netratings.com>
To: html-tidy@w3.org

Hello every body,
I'd like to know if there is any way to parse just a part of a document 
and retrieve a Node which can be then attached to the DOM. My need is to 
add to the DOM created for the document, the HTML code generated by some 
javascripts available in the page also. The HTML generated from the 
javascript is just a part of the document.... I need to process it 
separately and then add it to the DOM where it belongs...
The problem is that JTidy crates Document for the piece of HTML and 
always add the <head> and <body> tags. Even worse... It put my piece of 
html in the head or in the body or in both depending on its contents, 
and I need to have it encapsulated as it is.....

Can you help ?
Received on Tuesday, 16 March 2004 07:17:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC