Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#12721 closed defect (fixed)

[patch] Syntax error in filter expression

Reported by: Akos Bannerth Owned by: Akos Bannerth
Priority: normal Component: SectionEditPlugin
Severity: normal Keywords: javascript
Cc: Trac Release: 1.0


After upgrading to Trac 1.0.9 the following error appeared from tracsectionedit.js:

Error: Syntax error, unrecognized expression: *[@id]

which caused any other scripts loaded afterwards to fail as well.

Changing the expression to *[id] solved it, and it seems to work with the previous Trac version that we used too (1.0.1).

Attachments (1)

tracsectionedit.js.filter.patch (785 bytes) - added by Akos Bannerth 6 years ago.

Download all attachments as: .zip

Change History (8)

Changed 6 years ago by Akos Bannerth

comment:1 Changed 6 years ago by Akos Bannerth

I've later realized that the problem was not with the trac version used, but the fact that debian doesn't use the jquery version bundled with trac, instead it uses a separate package for it as dependency, which also got updated during the trac upgrade.

So the issue appeared when using jquery version 1.11 (the version pulled in by trac 1.0.9 on debian sid)

Last edited 6 years ago by Akos Bannerth (previous) (diff)

comment:2 Changed 6 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 16097:

1.2.0dev: Fix syntax error with jQuery 1.11

Fixes #12721.

comment:3 Changed 6 years ago by Ryan J Ollos

Owner: changed from Catalin BALAN to Akos Bannerth

comment:4 Changed 5 years ago by anonymous

Will this be backported to 0.2 branch ? It's the only stable branch according to main page...

comment:5 Changed 5 years ago by Ryan J Ollos

You'll want to install from sectioneditplugin/1.2. Consider it to be "stable". Updated documentation in SectionEditPlugin@20.

comment:6 Changed 4 years ago by Ryan J Ollos

In 17286:

1.2.0dev: Conform to PEP8

Refs #12721.

comment:7 Changed 4 years ago by Ryan J Ollos

In 17287:

1.2.0: Release version 1.2.0

Refs #12721.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Akos Bannerth.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.