Re: missing </li> tag?

Martin Kurz <[email protected]> Mon, 23 Feb 2009 11:22:33 +0100
Newsgroups gmane.comp.jakarta.ecs.user
Message-ID <[email protected]>
Hi Gordian,

there are two packages for the creation of html elements in ecs:

org.apache.ecs.html

and

org.apache.ecs.xhtml

the first one (org.apache.ecs.html) is for html4, the second one for 
xhtml, html4 doesn't force closing tags for element, xhtml does. Simply 
use to the lowercase classes from xhtml-package, then you'll get the 
closing tags.

Greetings,

Martin

Gordian Yuan schrieb:
> Hi all,
> 
> I am new to ecs, I write a assert like
> 
> assertEquals("<ul><li>Hello World</li></ul>", new UL().addElement(
>                 new LI("Hello World")).toString());
> 
> I expect "<ul><li>Hello World</li></ul>" but actual ecs generate
> "<ul><li>Hello World</ul>", it's missing "</li>"
> 
> My question is how to add the missing "</li>" tag??
> 
> Any input will be great .. thank you
> 
> Gordian
>