W3C home > Mailing lists > Public > www-validator@w3.org > November 2009

Re: wrong validation (missing </body>)

From: Klemens Mantzos <klemens.mantzos@strg.at>
Date: Thu, 19 Nov 2009 12:10:06 +0100
Cc: <www-validator@w3.org>
Message-Id: <12EA0745-0B3F-4095-81F0-DF80149177C7@strg.at>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
On 18.11.2009, at 18:37, Jukka K. Korpela wrote:

> Klemens Mantzos wrote:
>> here is the </body> tag missing, but according to the w3c markup
>> validator its valid html (if i add the </body> tag its still valid
>> ;)):
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
> If you look at the DTD, you will see that it defines the </body> tag as optional:
> <!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->

wow! thx for the reply.



This was about an text/html part of a mime email. it was flagged with "HTML_TAG_BALANCE_BODY" by spamassassin. which means "HTML tags within the body tag aren't correctly nested. Usually, tags are opened but not closed.".

after closing the body tag spamassassin wasn't flagging the mail. so i thought it must be a bug in the validator...
Received on Thursday, 19 November 2009 11:12:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:00 UTC