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

Tidy removing empty tags

From: <susan_levine@peoplesoft.com>
Date: Mon, 17 Jan 2000 15:23:11 -0800
To: html-tidy@w3.org
Message-ID: <OF26662FB5.EF1B94C7-ON88256869.007E2D41@peoplesoft.com>
Hi all--

Another question about Tidy behavior.  I have a custom tag that I want to
include in my HTML, that I need to be empty.  I.e.,...


My tag is defined in the config file as:
     new-blocklevel-tags: mytag

If I put some dummy content in between the open and close tags it works
fine, but if they're empty the node.trimEmptyElement() method removes my
tags.  Is there anything I can do about this?  I've tried many combinations
of empty, inline, and blocklevel tag definitions, and haven't stumbled on
the right combination.

Thank in advance,

Received on Monday, 17 January 2000 18:33:11 UTC

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