Re: wrong validation (missing </body>)

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.

kthxby,
klemens

----fyi

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