Bug Tracker

Modify

Ticket #3669 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

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
Blocking: Blocked by:

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.

Change History

comment:1 Changed 4 years ago by flesler

  • Cc captain_torche added
  • Status changed from new to closed
  • Resolution set to invalid

ONLY a sharp:

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

A sharp with more text optionally

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.