|
[BUG] in HTMLScriptElementImpl.setText(): msg#00034java.enhydra.xmlc
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 10.000,000000 ~ 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 10.000,000000 ~ 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> |
|---|---|---|
| Previous by Date: | Re[2]: Problem with setHref() encoding, Jacob Kjome |
|---|---|
| Next by Date: | Re: Some more information (was: [BUG] in HTMLScriptElementImpl.setText()), Mark van Leeuwen |
| Previous by Thread: | Problem with setHref() encoding, Mark van Leeuwen |
| Next by Thread: | Re: Some more information (was: [BUG] in HTMLScriptElementImpl.setText()), Mark van Leeuwen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |