Skip to main content

Bug Tracker

Side navigation

#3669 closed bug (invalid)

Opened December 01, 2008 02:15PM UTC

Closed December 03, 2008 02:05PM UTC

IE doesn't support [@href=#]

Reported by: captain_torche Owned by:
Priority: minor Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: Cc: captain_torche
Blocked by: Blocking:
Description

I'm trying to make something on all links that have a sharp in their href.

I tried ('a[@href=#]'), which works on Firefox and Chrome, but not in IE (event if I replace the sharp with another string).

Something like ('a[@class=test]') will work great, though.

Attachments (0)
Change History (1)

Changed December 03, 2008 02:05PM UTC by flesler comment:1

cc: → captain_torche
resolution: → invalid
status: newclosed

ONLY a sharp:

   $('a[href$=#]') 
or
   $('a[hash=#]') 

A sharp with more text optionally

   $('a[href*=#]') 
or
   $('a[hash]')