W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2002

Re: Empty <div> tags

From: Charles Reitzel <creitzel@rcn.com>
Date: Fri, 13 Dec 2002 12:38:34 -0500
Message-Id: <>
To: "Cox, Charlie" <ccox@cincom.com>
Cc: "'html-tidy@w3.org'" <html-tidy@w3.org>

Hi Charlie,

Adding an attribute should keep it from getting deleted, but it 
doesn't.  For example, Tidy will still drop the following:

<div class="foo"></div>

This would be a simple fix, but I'm not sure what the side effects would 
be.  Am I right in thinking that empty block elements with attributes 
should not be dropped?

Also, out of curiosity, what kind of style is useful for an empty DIV?

take it easy,

At 08:42 AM 12/13/2002 -0500, Cox, Charlie wrote:

>Is there any way to turn off the dropping of empty DIV elements? I have 
>CSS styles applied to empty DIV elements such that they do provide a purpose.
Received on Friday, 13 December 2002 12:34:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:52 UTC