Lie / Alan

re: If the source document was generated by a computer, and it produces invalid 
markup, shouldn't that be considered a bug in the producing program?

Yes, absolutely but we don't have access to the producing program only the 
produced xhtml files.


Dinesh


--------------------------------------------------------------------------------
Message: 7
Date: Wed, 29 Apr 2009 08:35:16 +0100
From: "Alan Gauld" <alan.ga...@btinternet.com>
Subject: Re: [Tutor] finding mismatched or unpaired html tags
To: tutor@python.org
Message-ID: <gt8vvh$33...@ger.gmane.org>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=response


"Lie Ryan" <lie.1...@gmail.com> wrote

>> documents were generated by another computer ie. they are not web page 
>> documents.  
> 
> If the source document was generated by a computer, and it produces 
> invalid markup, shouldn't that be considered a bug in the producing 

Elementree parses xml, the source docs are html.
Valid html may not be valid xml so the source could be correct 
even though it doesn't parse properly in elemtree.

OTOH you could be right! :-)

Alan G.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to