Re: XML Islands in Firefox



tomicmi...@xxxxxxxxx wrote:

Yes, I know I can not trust innerHTML. That is why I am asking for
help here. I have already seen the link you posted but it didn't
helped me.

With document.getElementById("zahtevek") I get a reference to <xml>
element but I don't know how to extract XML as a string from it. :
( That is the problem.

Maybe you could use <textarea> in stead of <div>:

<form method="get" action="#">
<textarea cols="60" rows="10" name="zahtevek">
<xml id="zahtevek">
<cd:Document xmlns:cd="http://Document";>
<cd:Data Id="Data"/>
</cd:Document>
</xml>
</textarea>
<input type="button" name="Test" value="Test"
onclick="alert(document.forms[0].zahtevek.value);">
</form>

With CSS and onFocus="blur()" it looks identical as a div.

--
Bart
.


Quantcast