Bug Tracker

Opened 15 years ago

Closed 13 years ago

#4221 closed bug

In Opera when jQuery code is inserted into XSLT stylesheet it won't be executed

Reported by: wolfgke Owned by: wolfgke
Priority: major Milestone: 1.3.2
Component: core Version: 1.3.2
Keywords: xslt jquery Cc:
Blocked by: Blocking:

Description

The following code XSLT stylesheet did not work with jQuery 1.3.1 in Firefox 3.0, Safari and Chrome 1.0. In Version 1.3.2 it does (so it was indeed a bug fixed by the jQuery team from 1.3.1 to 1.3.2).

Unluckily it still does not work in Opera 9.63.

For your explanation: the file file.xml is a very simple XML file to which style.xml is applied.

style.xml converts file.xml to XHTML code. This XML code contains a little call to jQuery

$(document).ready(function() {

alert("Hello world!");

});

for testing purposes.

As I already told you above: in jQuery 1.3.1 this did *not* work in Firefox 3.0, Safari and Chrome 1.0. In jQuery 1.3.2 it does.

But in jQuery 1.3.2 it still does not work in Opera 9.63.

For you to convince yourself that the bug lies in jQuery I created two files file2.xml and style2.xml which are doing similar stuff - but without using jQuery. This time it works in Opera 9.63.

Attachments (5)

file.xml (110 bytes) - added by wolfgke 15 years ago.
a simple XML file for which the XSLT stylesheet is applied. The result contains jQuery code
file2.xml (111 bytes) - added by wolfgke 15 years ago.
The XSLT stylesheet to apply to file.xml. The result contains jQuery code
file2.2.xml (111 bytes) - added by wolfgke 15 years ago.
another simple XML file for which the XSLT stylesheet style2.xml is applied. The result contains no jQuery code and is to convince you that the problem lies in jQuery
style.xslt (863 bytes) - added by wolfgke 15 years ago.
The XSLT stylesheet to apply to file.xml. The result contains jQuery code
style2.xslt (800 bytes) - added by wolfgke 15 years ago.
XSLT stylesheet which is to apply to file2.xml. The result contains no jQuery code and is to convince you that the problem lies in jQuery

Download all attachments as: .zip

Change History (9)

Changed 15 years ago by wolfgke

Attachment: file.xml added

a simple XML file for which the XSLT stylesheet is applied. The result contains jQuery code

Changed 15 years ago by wolfgke

Attachment: file2.xml added

The XSLT stylesheet to apply to file.xml. The result contains jQuery code

Changed 15 years ago by wolfgke

Attachment: file2.2.xml added

another simple XML file for which the XSLT stylesheet style2.xml is applied. The result contains no jQuery code and is to convince you that the problem lies in jQuery

Changed 15 years ago by wolfgke

Attachment: style.xslt added

The XSLT stylesheet to apply to file.xml. The result contains jQuery code

Changed 15 years ago by wolfgke

Attachment: style2.xslt added

XSLT stylesheet which is to apply to file2.xml. The result contains no jQuery code and is to convince you that the problem lies in jQuery

comment:1 Changed 15 years ago by wolfgke

Sorry: I uploaded file2.xml 2 times. Only the second description is correct.

comment:2 Changed 14 years ago by dmethvin

Component: unfilledcore

comment:3 Changed 13 years ago by miketaylr

Owner: set to wolfgke
Status: newpending

As this is so old, would you mind verifying that the problem still exists in 1.4.3? Thanks.

comment:4 Changed 13 years ago by trac-o-bot

Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.