Closed
Bug 207358
Opened 22 years ago
Closed 22 years ago
Browser crash loading XML document [@ txMozillaXMLOutput::endHTMLElement]
Categories
(Core :: XSLT, defect)
Core
XSLT
Tracking
()
RESOLVED
DUPLICATE
of bug 202765
People
(Reporter: rgimelli, Assigned: peterv)
Details
(Keywords: crash)
Crash Data
Attachments
(3 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
The browser crashes loading an xml document with an xslt generating html and a
<script>document.write("AAA");</script>
Reproducible: Always
Steps to Reproduce:
1. create a xml file like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="UIWrapperAuto.xsl"?>
<!--
Document : genUiWrapperExample.xml
Created on : May 28, 2003, 12:07 PM
Author : rgimelli
Description:
Esempio di documento generato da toXml(), per test foglio XSLT
-->
<uiWrapper id="jtfc.samples.FatturaPrompt" title="Elenco Fatture"
postTo="./FatturaHC">
<component id="dataFattura" class="jtech.ui.wrapper.JtHtmlText">
<property name="label">
Data Fattura:
</property>
<value>
10-01-2000
</value>
</component>
<component id="numeroFattura" class="jtech.ui.wrapper.JtHtmlText">
<property name="label">
Numero:
</property>
<value>
AB2334
</value>
</component>
</uiWrapper>
2.
In the same directory create a file named UIWrapperAuto.xsl like this:
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Document : UIWrapperAuto.xsl
Created on : May 28, 2003, 12:21 PM
Author : rgimelli
Description:
Purpose of transformation follows.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="GENERATOR" content="JASON - www.jtech.it" />
<title><xsl:value-of select="/uiwrapper[@title]" /></title>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="uiWrapper">
<h1>
Gestione:
<xsl:value-of select="@title" />
</h1>
<form method="POST" >
<xsl:attribute name="name">
<xsl:value-of select="@id" />
</xsl:attribute>
<xsl:attribute name="action">
<xsl:value-of select="@postTo" />
</xsl:attribute>
<table>
<tr>
<xsl:apply-templates/>
</tr>
</table>
</form>
</xsl:template>
<xsl:template match="component">
<xsl:if test="@class = 'jtech.ui.wrapper.JtHtmlText'">
<td><xsl:if test="property/@name='label'">
<xsl:value-of select="property" />
</xsl:if>
</td>
<td> <input type="text">
<xsl:attribute name="name"><xsl:value-of select="@id"
/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="value"
/></xsl:attribute>
</input>
</td>
<script>document.write("TTTTRRRR"); </script>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
3. with the browser open the xml file you create at step 1
Actual Results:
browser crashes.
Expected Results:
It should reproduce a simple form.
Reporter | ||
Updated•22 years ago
|
Summary: browser crash loading xml doc → browser crash loading xml doc
Confirmed using FizzillaMach/2003-05-27-03-trunk, crashing at
txMozillaXMLOutput::endHTMLElement and generating TB270872Q, though only using
the testcase on my local filesystem. The XML attachment I created on this bug
doesn't work for some reason. Setting All/All.
Dup of bug 202765?
Severity: normal → critical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
OS: Linux → All
Hardware: PC → All
Summary: browser crash loading xml doc → Browser crash loading XML document [@ txMozillaXMLOutput::endHTMLElement]
Stack is the same; duping.
*** This bug has been marked as a duplicate of 202765 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•14 years ago
|
Crash Signature: [@ txMozillaXMLOutput::endHTMLElement]
You need to log in
before you can comment on or make changes to this bug.
Description
•