Closed Bug 336709 Opened 19 years ago Closed 19 years ago

while using javascript in xsl if you use document.write it never transforms xml

Categories

(Core :: XSLT, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 202765

People

(Reporter: erman.olca, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3 i have an xml file lets say a.xml and and xsl file (a.xsl) to transfor a.xml to html. Also i have to use javascript to produce html. if i use document.write in my javascript code firefox 1.5.3 never produces the output. Before the new version i was using 1.0.7 but it crashed when i try to view a.xml file. 1.5.3 does not crash but it can not produce the output. if i use alert instead of document.write it shows message but the problem is using document object. Reproducible: Always Steps to Reproduce: 1.right click on xml file and say open with firefox Actual Results: right click on xml file and say open with firefox this is my javascript part of xsl file <script language="JavaScript"> <xsl:text disable-output-escaping="yes"><![CDATA[ <!-- document.write('something'); //--> ]]></xsl:text> it's ot important what you use in the parameter instead of 'something'. Actually i want to write this: document.write(AnArray[<xsl:value-of select="Social/@Number" />]); </script>
You're lucky, it doesn't crash, see bug 202765.
Assignee: nobody → xslt
Component: General → XSLT
Product: Firefox → Core
QA Contact: general → keith
Version: unspecified → Trunk
*** This bug has been marked as a duplicate of 202765 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.