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
---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: ecs-user-h...@jakarta.apache.org