Closed
Bug 292378
Opened 20 years ago
Closed 20 years ago
crash with document.write when viewing XML with stylesheet
Categories
(Core :: XSLT, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 202765
People
(Reporter: ginomarckx, Assigned: peterv)
Details
(Keywords: crash)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 When loading an XML document, linked to a stylesheet, if the stylesheet transforms the XML in an HTML page containing JavaScript, the document.write function call crashes FireFox. When storing the result from the XSL transformation in an HTML file and loading that in FireFox, everything works fine. Reproducible: Always Steps to Reproduce: 1. Paste following content in a file called 'bug.xml' --- BEGIN -------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="bug.xsl"?> <main/> --- END ---------------------------------------------- 2. Paste following content in a file called 'bug.xsl' residing in the same folder as 'bug.xml' --- BEGIN -------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="main"> <html> <head><title>Bug!</title></head> <body> <script type="text/javascript"> document.write("Writing to the document in an XSL crashes Firefox!"); </script> </body> </html> </xsl:template> </xsl:stylesheet> --- END ---------------------------------------------- 3. Load bug.xml in FireFox Actual Results: FireFox crashes Haven't got a clue
Updated•20 years ago
|
Assignee: nobody → peterv
Component: General → XSLT
Product: Firefox → Core
QA Contact: general → keith
Version: unspecified → 1.0 Branch
Comment 1•20 years ago
|
||
Updated•20 years ago
|
Attachment #182244 -
Attachment description: XSLT stylesheet for comment 0 → XSLT stylesheet from comment 0
Comment 2•20 years ago
|
||
Updated•20 years ago
|
Attachment #182245 -
Attachment mime type: text/html → text/xml
Comment 3•20 years ago
|
||
Uh, it's a dupe. *** This bug has been marked as a duplicate of 202765 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•