Javascript corruption with 0.8a4?

Bug #411386 reported by Orionds
8
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.

Orionds (shamrock-d)
description: updated
Revision history for this message
Kazé (kaze) wrote :

I’m afraid I need more information to work on this.

If I’ve understood correctly:
 * “Hot Potatoes” is a Java-based tool to create HTML tutorials / quizzes: http://web.uvic.ca/hrd/halfbaked/
 * 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.

Revision history for this message
Orionds (shamrock-d) wrote : Re: [Bug 411386] Re: Javascript corruption with 0.8a4?

You're absolutely right. I renamed the html file edited by 0.8a4 to xhtml and the problem was solved.

I'm sending the files to you anyway so that you can have a look and try them out.

In the meantime, I will just rename them to xhtml.

Very much appreciated - thank you.

________________________________
From: Kazé <email address hidden>
To: <email address hidden>
Sent: Tuesday, August 11, 2009 9:28:24 AM
Subject: [Bug 411386] Re: Javascript corruption with 0.8a4?

I’m afraid I need more information to work on this.

If I’ve understood correctly:
* “Hot Potatoes” is a Java-based tool to create HTML tutorials / quizzes: http://web.uvic.ca/hrd/halfbaked/
* 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.

--
Javascript corruption with 0.8a4?
https://bugs.launchpad.net/bugs/411386
You received this bug notification because you are a direct subscriber
of the bug.

Status in “kompozer” package in Ubuntu: New

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.

Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing related bugs.

Changed in kompozer (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.