[jdom-interest] HTML, setExpandEmptyElements, setExpandEntities
David Franzen
info at pixelandink.com
Thu Jan 10 19:32:40 PST 2002
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Is your HTML document XHTML complient, including the XHTML declaration at
the begining? If not, see if that makes the browser "bug" go away. What
about adding attributes to textarea instead of text content?
-David
----- Original Message -----
From: "Börries Ludwig" <boerries.ludwig at t-systems.de>
To: <jdom-interest at jdom.org>
Sent: Thursday, January 10, 2002 12:44 AM
Subject: [jdom-interest] HTML, setExpandEmptyElements, setExpandEntities
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> Hi,
>
> sorry, if this question was asked before. I didn't find it in the archive.
I
> sent this message already, but probabely it has not been arrived.
>
> My HTML-pages are prepared as XML and are filled during runtime. For that
I
> am using JDOM. Unfortunately the XMLOutputter makes <TEXTAREA/> from
> <TEXTAREA></TEXTAREA>, if it has no content. This will cause a bug in
HTML.
>
> That's why I tried anXMLOutputter.setExpandEmptyElements(true), but that
> creates <BR></BR> from </BR>. The page is twice as long as intended,
because
> my browers shows two lines insted of one.
>
> I also tired aSAXHandler.setExpandEntities(false) with similar results.
>
> The only way I have right now it to set a blank between
> <TEXTAREA></TEXTAREA>.
>
> Any better suggestions ?
>
> Help is very welcome.
>
> Boerries
>
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
>
More information about the jdom-interest
mailing list