Opened 11 years ago
Closed 11 years ago
#11248 closed bug (invalid)
Regular expressions for beginning (^) or ending ($) of a string do not work on 1.7.1
Reported by: | 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]
Note: See
TracTickets for help on using
tickets.
Yes, and 1.4.1 was wrong. Quote any value with special characters.