<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6154</bug_id>
          
          <creation_ts>2008-10-11 05:07:18 +0000</creation_ts>
          <short_desc>Amaya moves container span as content of a script</short_desc>
          <delta_ts>2008-10-14 12:04:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Amaya</product>
          <component>Editing</component>
          <version>10.1-pre4</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.meeus-d.be/templates/template.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominique Meeùs">dominique</reporter>
          <assigned_to name="Vatton">Irene.Vatton</assigned_to>
          <cc>carcone</cc>
    
    <cc>emilien.kia</cc>
    
    <cc>fred.wang</cc>
    
    <cc>Irene.Vatton</cc>
    
    <cc>vincent.quint</cc>
          
          <qa_contact name="Vatton">Irene.Vatton</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22154</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Meeùs">dominique</who>
    <bug_when>2008-10-11 05:07:18 +0000</bug_when>
    <thetext>I use above (nearly) every page a script (see url). The &lt;script&gt;&lt;/script&gt; tag has a src= attribute but no content. The script is enclosed in a &lt;span&gt;&lt;/span&gt; tag to control the presentation. The hierarchical tree is thus &lt;span&gt;&lt;script&gt;&lt;/script&gt;&lt;/span&gt;.
Amaya pretends to put the &lt;span&gt;&lt;/span&gt; as content of the script: &lt;script&gt;&lt;span&gt;&lt;/span&gt;&lt;/script&gt;. As a result, the presentation is lost and the script also, &lt;span&gt;&lt;/span&gt; being no legitimate JavaScript code!

Code is as follows :
&lt;p&gt;
  &lt;span class=&quot;floatleft smaller&quot;&gt;
    &lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot; src=&quot;../monAdresse.js&quot;&gt;
    &lt;/script&gt;
  &lt;/span&gt;
&lt;/p&gt;

1. Amaya is unable to display the page correctly (compare with Firefox).
2. Upon editing anything in the page Amaya transforms the code in the nonsensical

&lt;p&gt;&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot; src=&quot;../monAdresse.js&quot;&gt;
&lt;span class=&quot;floatleft smaller&quot;&gt; &lt;/span&gt;&lt;/script&gt;&lt;/p&gt;

This makes Amaya practically unusable with scripts.

In my distibution (Ubuntu 8.04), the version provided is Amaya 9.55 Feb 13 2008.
I tried different versions (10.0, 10.1.pre3, 10.1.pre4) and found the same destructive behaviour.
(First filed on Sun, 13 Jul 2008 19:12:45 +0200 as &quot;Amaya messing up a script and a span&quot; in the www-amaya@w3.org list.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>