Open Bug 443798 Opened 16 years ago Updated 13 years ago

Composer sometimes adds the line " <script><head> " after the <head> tag

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: dickbuijs, Unassigned)

Details

(Whiteboard: [Halloween2011Bug])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; nl-NL; rv:1.8.1.15) Gecko/20080621 SeaMonkey/1.1.10 Mnenhy/0.7.5.0
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; nl-NL; rv:1.8.1.15) Gecko/20080621 SeaMonkey/1.1.10 Mnenhy/0.7.5.0

The following code was entered in Composer (<html> source TAB)

<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<script type="text/javascript">
function wb(file,omschr) {
document.write('<a target="inhoudFrame" href="'+parent.code+'/wb/'+file+'">'+omschr+'</a><br>');
}
</script>
<title>Overlegraad</title>
<link rel="stylesheet" href="dmr.css" type="text/css">
<meta content="Dick" name="author">
</head>
<body>
<script type="text/javascript">parent.ix=-1</script>
<table cellspacing="6">
<tbody>
<tr>
<td> <br>
<img alt="weekberichten" src="weekberichten.jpg"> </td>
</tr>
<tr>
<td>
<script type="text/javascript">
wb("wb252.html","252 - 20 juni 2008");
wb("wb251.html","251 - 13 juni 2008");
wb("wb250.html","250 - 6 juni 2008");
wb("wb249.html","249 - 30 mei 2008");
</script><br>
<br>
</td>
</tr>
</tbody>
</table>
</body>
</html>

After switching to the <normal> TAB and back to <html> source TAB the html-text looks like

<html>
<head>
<script><head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<script type="text/javascript">
function wb(file,omschr) {
document.write('<a target="inhoudFrame" href="'+parent.code+'/wb/'+file+'">'+omschr+'</a><br>');
}
</script>
<title>Overlegraad</title>
<link rel="stylesheet" href="dmr.css" type="text/css">
<meta content="Dick" name="author">
</head>
<body>

(no change)

</body>
</html>
 
After switching several times the html text begins with

<html>
<head>
<script><head>
<script><head>
<script><head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
(etc.)

Reproducible: Sometimes

Steps to Reproduce:
see "Details"
Actual Results:  
see "Details"

Expected Results:  
that's clear

The problem already exists since Seamonkey 1.1.2 (and maybe longer).
If the <script> block in the <head> block is removed, the problem is over.
I tried to change or remove some lines to see when the problem should disappear but I could not find exactly when the problem occurs or not.

Solution for me is Using TACO HTML editor instead of Seamonkey editor.
Can you reproduce with SeaMonkey v2.0a1pre ?
No, for SeaMonkey v2.0a1pre requires Mac OS X 4 and my computer has 10.3.9.

Within a few months I hope to have a new computer with 10.5
I shall try to reproduce the problem then and add a comment on this place
I looked at the problem on a new computer (Mac OS X Leopard) and Seamonkey v2.0a1pre, downloaded aug 6th. The problem seems te be worsened. 

On the source view page I entered

<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Medezeggenschapsraad</title>
<script type="text/javascript">
function wb(file,omschr) {
document.write('<a target="inhoudFrame" href="'+parent.code+'/wb/'+file+'">'+omschr+'</a><br>');
}
</script>
</head>
<body>
<script type="text/javascript">parent.ix=-1</script>
<table cellspacing="6">
<tbody>
<tr>
<td> <br>
<img alt="weekberichten" src="weekberichten.jpg"> </td>
</tr>
<tr>
<td>
<script type="text/javascript">
wb("wb252.html","252 - 20 juni 2008");
</script><br>
<br>
</td>
</tr>
</tbody>
</table>
</body>
</html>

switching to normal view and back to source view first gave no problem.
After a small change (20 juni -> 21 juni) and switching to normal view and back to source view the source showed

<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">&lt;head&gt;

&lt;meta
http-equiv="content-type" content="text/html; charset=ISO-8859-1"&gt;
&lt;title&gt;Medezeggenschapsraad&lt;/title&gt; &lt;script
type="text/javascript"&gt;
function wb(file,omschr) {
document.write('&lt;a target="inhoudFrame"
href="'+parent.code+'/wb/'+file+'"&gt;'+omschr+'&lt;/a&gt;&lt;br&gt;');
}
</head>
<body>
<script type="text/javascript">parent.ix=-1</script>
<table cellspacing="6">
<tbody>
<tr>
<td> <br>
<img alt="weekberichten" src="weekberichten.jpg"> </td>
</tr>
<tr>
<td>
<script type="text/javascript">
wb("wb252.html","252 - 21 juni 2008");
</script><br>
<br>
</td>
</tr>
</tbody>
</table>
</body>
</html>

I hope my information can be of any use
Version: unspecified → Trunk
Simply adding a glyph and switching from "source" view to "normal" view
causes the addition of bogus, superfluous, and erroneous 

<script><head>

over and over again!
Seems to work fine for me in SM2.3 and above, could you check?
I must say that I no longer use Seamonkey composer to build html-pages (I do use SM fort email and browsing!).
However I just entered the html-code from the upper half of comment 3 into SM composer and found the same error as mentioned in the second half of that comment.
My Seamonkey version is 2.3.3 on Mac Lion.
Tested again, this time on SM2.4beta3 and works fine. If it still fails could you try with a new profile. I'm using the attached file for my testing.
I tested Seamonkey 2.3.3 and Seamonkey 2.4 and entered the same html code as in comment 3.
I found exactly the same result as in comment 3, both in the profile I have used for many years now as in a new so "clean" profile
Original problem doesn't exist now, but problem described in comment 3 still here
Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111017 Firefox/10.0a1 SeaMonkey/2.7a1
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
Hardware: PowerPC → All
Whiteboard: [Halloween2011Bug]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: