ZPT and Javascript

Bug #142333 reported by Bug Importer
2
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Medium
Unassigned

Bug Description

Hi ,
this code that is well formed and that is a valid xhtml code can not be use in Template Page.

The compilation error has return.

workaround
 Put javascript in dtml document

best regards.
Pierre

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
        <head>
                <title>Enter the title of your XHTML document here</title>
        </head>
<body>
<script type="JavaScript">
 <![CDATA[
 function popup(f, w, h,title ,url) {
 var a;
 a=window.open("","",'noresizable,scrollbars=no,left='+ ((screen.width - w) /2)
 +',top='+ ((screen.height - h) /2) +' ,width=' + w + ',height=' + h) ;
 a.document.open();
 a.document.write('<html><title>'+title+'</title><body background=img/load.gif
 leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close
 ()">');
 a.document.write('<a HREF="javascript:a.close();"><img border=0 src='+url+'
 width='+w+' height='+h+'></a>');
 a.document.write('</body></html>');
 a.document.close();
 a.focus();

 }
 ]]>
 </script>

                <p>Enter the body text of your XHTML document here</p>

  </body>
</html>

Tags: bug zope
Revision history for this message
Maik Jablonski (mjablonski) wrote :

I cannot reproduce the error. Works for me with 2.6-HEAD.

Revision history for this message
Chris McDonough (chrism-plope) wrote :

Status: Pending => Rejected

Rejecting on behalf of Maik.

Revision history for this message
macadames (jeanmat-grimaldi) wrote :

Hi,

I use Plone 3.3 with zope 2.10.9 version under win32 and i reproduce this bug (September 2009) :-)

Is it a zpt regression ?

Many thanks

Jean-mat

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.