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

Tidy removing empty tags

From: <susan_levine@peoplesoft.com>
Date: Fri, 24 Mar 2000 11:45:34 -0600
To: html-tidy@w3.org
Message-ID: <OF2D6CB8B9.0C59FAC1-ON86256869.0081CBE7@rfdinc.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.,...

<p>
<mytag></mytag>
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,

--susan
susan_levine@peoplesoft.com
Received on Friday, 24 March 2000 13:14:05 GMT

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