W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2008

Amaya messing up a script and a span

From: Dominique Meeùs <dominique@meeus-d.be>
Date: Sun, 13 Jul 2008 19:12:45 +0200
Message-ID: <487A378D.1010906@meeus-d.be>
To: www-amaya@w3.org
At the beginning of my pages (as for example 
http://www.meeus-d.be/linux/divers.html) I put script elements inside 
span elements to make them smaller and float left and right. Amaya 
pretends to put the span as content of the script ! My code seems to me 
perfectly normal and HTML-Tidy agrees. Amaya seems to be "too clever" on 
this. Code is as follows :

|  <span class="floatleft smaller">
    <script type="text/javascript"
        language="JavaScript"
        src="../monAdresse.js">
    </script>
  </span>
  <span class="floatright smaller">
    <i>Dernière modification le</i>
    <script type="text/javascript"
        language="JavaScript"
        src="../lastSaved.js">
    </script>
  </span>&nbsp;|

Amaya transforms it in the nonsensical

|<script type="text/javascript" language="JavaScript" 
src="../monAdresse.js">
<span class="floatleft smaller"> </span></script>
 <span class="floatright smaller"><i>Dernière modification le</i>
</span><script type="text/javascript" language="JavaScript"
src="../lastSaved.js">
<span class="floatright smaller"> </span></script>|
-- 

Amitiés, Dominique,
dominique@meeus-d.be, +32 (473) 61 31 75, http://www.meeus-d.be/
Received on Wednesday, 16 July 2008 05:43:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:56 UTC