Bug Tracker

Opened 8 years ago

Closed 8 years ago

#11248 closed bug (invalid)

Regular expressions for beginning (^) or ending ($) of a string do not work on 1.7.1

Reported by: hwillhan@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

Following code does not work on 1.7.1, but it works on 1.4.1.

$(document).ready(function() { $('a[href=mailto:]').addClass('mailto'); $('a[href$=.pdf]').addClass('pdflink'); });

Runtime error occurs: Microsoft JScript runtime error: Syntax error, unrecognized expression: [href$=.pdf]

Change History (1)

comment:1 Changed 8 years ago by dmethvin

Resolution: invalid
Status: newclosed

Yes, and 1.4.1 was wrong. Quote any value with special characters.

Note: See TracTickets for help on using tickets.