Skip to main content

Bug Tracker

Side navigation

#4221 closed bug ()

Opened February 23, 2009 02:40PM UTC

Closed November 11, 2010 11:09PM UTC

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 (0.1 KB) - added by wolfgke February 23, 2009 02:41PM UTC.

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

  • file2.2.xml (0.1 KB) - added by wolfgke February 23, 2009 02:42PM UTC.

    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

  • file2.xml (0.1 KB) - added by wolfgke February 23, 2009 02:41PM UTC.

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

  • style.xslt (0.8 KB) - added by wolfgke February 23, 2009 02:43PM UTC.

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

  • style2.xslt (0.8 KB) - added by wolfgke February 23, 2009 02:44PM UTC.

    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

Change History (4)

Changed February 23, 2009 02:45PM UTC by wolfgke comment:1

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

Changed October 14, 2009 03:10AM UTC by dmethvin comment:2

component: unfilledcore

Changed October 26, 2010 06:24PM UTC by miketaylr comment:3

owner: → wolfgke
status: newpending

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

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:4

status: pendingclosed

Automatically closed due to 14 days of inactivity.