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

Re: Validate empty tags

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 28 Jan 2007 15:31:47 +0100
To: Karthik Krishnamurthy <karthik.krishnamurthy@yahoo.com>
Cc: html-tidy@w3.org
Message-ID: <ircpr290gbvrjj01ot849mt08ivq2pupib@hive.bjoern.hoehrmann.de>

* Karthik Krishnamurthy wrote:
>I am using HTML::Tidy to validate blocks of html. I need to get
>HTML::Tidy to get to warn on encountering empty tags without a trailing
>slash (img,br,hr etc) like it does for a missing </span> as below

Tidy corrects this kind of problem without generating a warning, in some
cases it might not even be possible to warn about it since Tidy might
not yet know whether to treat the document as HTML or as XHTML. If you
want to check an XML document for well-formedness, it's best to use an
XML parser, not Tidy, for the task.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Sunday, 28 January 2007 14:31:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:56 GMT