Javascript corruption with 0.8a4?
Bug #411386 reported by
Orionds
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kompozer (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: kompozer
I generate html pages with Hot Potatoes that are cloze exercises using javascript. I edit these pages with Kompozer adding links, graphics or embedded videos. There was no problem with 0.710 but since switching to Ubuntu, 0.710 crashes.
After using 0.8a4 to edit and saving the html page, when I click on the "check" or "hint" button, I get a popup that has a "back" button rather than the usual "ok" button. Also, the popup refuses to close or go away. 0.8a4 has the same bug running in Windows.
I can use 0.710 with Wine or Sea Monkey without problems. However, if there is a fix for 0.8a4, it would be nice.
I am using Ubuntu 9.04
Thanks in advance for any help.
I’m afraid I need more information to work on this.
If I’ve understood correctly: web.uvic. ca/hrd/ halfbaked/
* “Hot Potatoes” is a Java-based tool to create HTML tutorials / quizzes: http://
* you’ve created a dynamic web page with it (HTML+CSS) that works fine in your browser
* after editing this page with KompoZer 0.8a4, it doesn’t work any more
If that’s correct, please send two attachments:
* the HTML file that has been created with “Hot Potatoes”
* the HTML file after it has been edited with KompoZer 0.8a4
…and tell me what web browser you’ve used.
I confess I haven’t tested KompoZer with JavaScript yet, but as far as I know KompoZer shouldn’t modify the JavaScript code.
Just guessing: if you’re editing XHTML pages, a common problem with KompoZer 0.8a4 pages is that it creates <script /> elements in the head node, which is perfectly XHTML-compliant but not understood by Firefox 3+ if the XHTML page is sent as text/html instead of application/ xhtml+xml (or if it doesn’t have an *.xhtml extension for a local file).
This bug will be addressed during the beta-stage: I’ll just force KompoZer to use <script></script> instead of <script />, even in XHTML.