Title: SV: transform of empty elements

Hi Antony

Thanx for the quick answer, but yes you're quite right I dosnt really solve my problem, cos the textarea needs to be empty on load.

/Michael

-----Oprindelig meddelelse-----
Fra: Antony Quinn [mailto:[EMAIL PROTECTED]]
Sendt: 28. november 2002 14:56
Til: [EMAIL PROTECTED]
Emne: RE: transform of empty elements


Michael,

I had a similar problem with <script> tags in IE.

Xerces (quite rightly) converts <script src="" to <script
src="" This is fine in Mozilla but IE won't accept it.

The only solution I found is to be a full-top (period) between the tags, ie:
<script src="">

I guess you don't want to have full-stops or other characters appearing
between your <textarea> tags.

Does anyone have a better solution?

Regards/mvh,

Antony

-----Original Message-----
From: Michael Nielsen (Info) [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:23
To: '[EMAIL PROTECTED]'
Subject: transform of empty elements


Hi

I have this problem when using I.E. 6 for displaying parsed XHTML.

Take this for instance:
<tr><td><textareal class="someclass" name="somename"></textarea></td></tr>

The above will be parsed as:
<tr><td><textareal class="someclass" name="somename"/></td></tr>

Guess what! I.E.6 displays this af a textarea with the </td></tr> as content
inside.

My question is, how do I make the parser understand to leave tags the way
they are without parsing to empty tags?

I use the org.apache.xerces.parsers.DOMParser.

Thanx in advance

/Michael


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

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

Reply via email to