logo       

[BUG] in HTMLScriptElementImpl.setText(): msg#00034

java.enhydra.xmlc

Subject: [BUG] in HTMLScriptElementImpl.setText()

Hi all,

I guess I've encountered a bug in the setText() method. Here's my scenario:

1) My html page is of this kind

<html>
<head>
...
</head>
<body>
...
some content, tables, etc..
...
<script id="jsInstructions" language="JavaScript">top.notifyTab(tabID);</script>
</body>
</html>

Please note that this <script> is intentionnaly the last tag before </body>

2) I modify in my barracuda code the content of the javascript contained in jsInstructions.

....
newInstructions = "top.notifyTab(tabID);;top.changeTabDescription('0', 'EUR&nbsp;10.000,000000&nbsp;~&nbsp;USD');";
jsInstructions.setText(newInstructions);
.....


3) The bug:
What happens (systematically on a given page, but not on other ones where it should occur too (same code), making it hard to trace back), is that the generated html page looks like:

<html>
<head>
...
</head>
<body>
<script id="jsInstructions" language="JavaScript" type=
"text/javascript">
</script>
top.notifyTab(tabID);;top.changeTabDescription('0',
'EUR&nbsp;10.000,000000&nbsp;~&nbsp;USD');
...
some content, tables, etc..
...
</body>
</html>

The <script> tag has become the first child of its parent (body), and the content (the javascript text) the next child of <body>, after <script> :-(

If someone has a clue, here's some more info:
I'm using Barracuda 1.1 final, thus xmlc-2.1. Sun JDK 1.4.1

Thanks for your help,

--
Mark van Leeuwen
Virgil B.V.
Amsterdam


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise