On Tue, 02 Jan 2007 11:40:53 +0100, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
* Henri Sivonen <[EMAIL PROTECTED]> [2007-01-02 01:35]:
I hadn't thought that Atom was supposed to use innerHTML
parsing. I'd have said that you prepend
"<!DOCTYPE html><title></title><div>" to what travels in the
feed and append "</div>" to it,  parse the resulting string and
grab the first div in the document order.

That will lead to silent data loss if the content is malformed
such that it contains an extraneous `</div>`.

Yeah, it's probably better to take the first and only <body> element.


--
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Reply via email to