Well, a hack would be to include a   in there... in the xml, you'll have to put the numeric value in though, as   (off the top of me little head). :)

Though it would be handy if it were possible to create an instance of the xml serializer with a parameter like:

<collapse-emtpy-elements>false</collapse-emtpy-elements>



jL


On Mar 22, 2004, at 2:42 PM, Steve Krulewitz wrote:

Hey folks --

I've been using the XMLSerializer to serialize xhtml (set up in a similar way as the stock distribution's root sitemap), but I'm running into some problems with the way empty elements are treated, specifically the script and textarea tags. The XMLSerializer will render the empty element as:

<textarea />

But according to the Dev Guru XHTML reference's page on the textarea element [1], a separate closing tag is mandatory:

<textarea></textarea>

Browsers seem to agree with this -- textarea tags and script tags rendered without a separate closing tag are just ignored.

What can be done about this sort of inserting spaces between the tags to force the closing tag to be rendered?

cheers,
-steve

[1] http://www.devguru.com/Technologies/xhtml/quickref/xhtml_textarea.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







John Lianoglou | Vice President | ARACHNEdesign
http://www.arachnedesign.net

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to