[Tutor] finding mismatched or unpaired html tags
Dinesh B Vadhia
dineshbvadhia at hotmail.com
Wed Apr 29 11:23:54 CEST 2009
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.gauld at btinternet.com>
Subject: Re: [Tutor] finding mismatched or unpaired html tags
To: tutor at python.org
Message-ID: <gt8vvh$337$1 at ger.gmane.org>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=response
"Lie Ryan" <lie.1296 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090429/0895f023/attachment.htm>
More information about the Tutor
mailing list