External links selectors invalid for jQuery 1.2

spiffyd - October 22, 2008 - 14:01
Project:WebSnapr Preview Bubble
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:minor
Assigned:Unassigned
Status:active
Description

Adding this as a CSS selector in settings:

div.node a[@href^=http://]:not([@href*=DOMAIN.COM)

does not trigger popups.

Other selectors work though... Can someone confirm?

#1

George2 - November 4, 2008 - 12:27

div.node a[href^=http://]:not([href*=example.com])

works in the 6 version, i'd imagine would work in 5 too.

the @ was deprecated in jquery 1.2 so that may be your problem, plus you are missing a ] after .COM

#2

George2 - November 4, 2008 - 12:30
Priority:critical» normal

#3

spiffyd - November 5, 2008 - 12:35

Thanks George2!

Perhaps the example in the settings should be changed to reflect this deprecation...

#4

Gurpartap Singh - November 5, 2008 - 15:11
Title:External links CSS selectors NOT WORKING» External links selectors invalid for jQuery 1.2
Category:bug report» task
Priority:normal» minor

Drupal 5 does not have jQuery 1.2, and the default package supports the example selector. However, instructions can be added in case the user upgrades to jQuery 1.2+.

 
 

Drupal is a registered trademark of Dries Buytaert.