Skip to main content

Bug Tracker

Side navigation

#11248 closed bug (invalid)

Opened January 28, 2012 01:47AM UTC

Closed January 28, 2012 01:50AM UTC

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

Reported by: hwillhan@hotmail.com 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]

Attachments (0)
Change History (1)

Changed January 28, 2012 01:50AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

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