Closed
Bug 243863
Opened 20 years ago
Closed 20 years ago
Using document.write() in table in XSL file causes Mozilla crash
Categories
(Core :: XSLT, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 202765
People
(Reporter: rituraj_tiwari, Assigned: peterv)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514
I am using an XML file to transform XML into HTML. The source XML is of the
following format:
<message-catalog>
<message offset="some integer">
<summary>some text</summary>
.
.
.
</message>
</message-catalog>
My XSL has the following code snippet:
<table>
<tr bgcolor="#9acd32">
<td>Message Id</td>
<td>Summary</td>
.
.
</tr>
<xsl:for-each select="message-catalog/message">
<tr>
<td>
<script>document.write(createMessageId(<xsl:value-of
select="@offset"/>));</script>
</td>
<td><xsl:value-of select="summary"/></td>
</xsl:for-each>
</table>
function createMessageId is declared in the document. Omitting call to this
function from the table fixes the crash.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•20 years ago
|
||
*** 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
•