Closed Bug 248550 Opened 21 years ago Closed 21 years ago

Mozila locks up when running XSLT and Javascript

Categories

(Core :: XSLT, defect)

defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 202765

People

(Reporter: sspecter, Assigned: peterv)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 I am trying to run a XML+XSLT using javascript in the XSLT file. The javascript dont work as in the HTML because the XSLT is parsed before the javascript. So I tried to make the parse ignore the javascript using CDATA. When I try this Mozilla lock up. I tested it using Windows and linux, and using lots of browsers. Unfortunately only IE didnt locked up. I already saw some report about XSLT using script (ID 182460) but there was using <iframe>, so I think it was better to make other report. here is a code i used in the XSL: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <head> <title> Mozilla Locker </title> </head> <body> <script language="javascript"> <![CDATA[ <!-- str="this code should lock mozilla"; document.write(str); //--> ]]> </script> </body> </html> </xsl:template> </xsl:stylesheet> Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Mozilla lock up or crash and open the bug report Expected Results: the XSLT+Javascript must work normally or at least give a error telling why
dupe of bug 202765, document.write is the (unsupported) culprit *** This bug has been marked as a duplicate of 202765 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: