W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

problem nesting user defined inline tags

From: Carl Resnikoff <carl@resnikoff.net>
Date: Tue, 22 Aug 2000 22:21:10 -0400 (EDT)
Message-Id: <200008230220.TAA00405@value.net>
To: html-tidy@w3.org
Cc: ac.quick@sympatico.ca, carl@resnikoff.net
I am having a problem in the Java version of Tidy (JTidy) where
user-added inline tags are not allowed to nest in some
(but not all) cases where
standard inline tags are. I wrote to the author of JTidy, Andy Quick,
and he replied that he is following the behaviour of Tidy
and that this behaviour also occurs in Tidy. 
He recommended that  I post the question to this list. 
Can anybody comment on whether this is a feature or a bug to
be fixed? My description and his reply follow.
	Thanks much
	Carl Resnikoff

From: Carl Resnikoff 
To: Andy Quick 
Cc: Carl Resnikoff 
Sent: Thursday, August 03, 2000 5:16 PM
Subject: JTidy bug or feature?

Hi Andy. 
I've run into some unexpected behavior of JTidy that may be a bug,
or at least I need advice.
Several months ago, I added a tag "<lm:xcode>" to JTidy, using 

 p.put("new-inline-tags", "lm:xcode");

Then I can do some later postprocessing on anything enclosed 
in at a <lm:xcode> <lm:xcode> block.
This works very well for almost anything I've thrown at it, (see attached
but when I try to do:


I get the following error:
line 13 column 1 - Warning: inserting implicit <strong>
line 16 column 1 - Warning: replacing unexpected </lm:xcode> by </strong>
line 20 column 1 - Warning: missing </lm:xcode> before </strong>

But if I use one of the standard inline tags like
the inlines nest correctly.
That suggests that there are more than one kind of inline tag.
Can you clarify or suggest a workaround?
thanks, Carl
============= Reply ==============
From: "Andy Quick" <ac.quick@sympatico.ca>
To: "Carl Resnikoff" <carl@resnikoff.net>
Subject: Re: JTidy bug or feature?
Date: Tue, 22 Aug 2000 21:39:22 -0400

It seems that the last 3 versions of C Tidy behave the
same way.  Java tidy is a port of C Tidy so it is not
surprising that Java tidy's output matches C tidy's.
I suggest you post this to the mailing list and see if
someone can answer it.
Received on Wednesday, 23 August 2000 12:57:34 UTC

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