Bug Tracker

Modify

Ticket #1243 (closed bug: invalid)

Opened 6 years ago

Last modified 6 years ago

IE doesn't work with $('a[@text=sometext]').click()

Reported by: vokic Owned by:
Priority: trivial Milestone: 1.1.3
Component: core Version: 1.1.2
Keywords: click, attribute, attr, selector, event Cc:
Blocking: Blocked by:

Description

I do not know if someone already mention this, but while working on one application this kind of referencing links worked in FF but didn't work in IE.

Links were created like this: <a title="sometitle">sometext</a>

The solution is to name all links like this <a title="sometitle" name="somename">sometext</a> and then reference it using $('a[@name=somename]').click()

It works that way in IE and in FF...

PS: I hope that it was planned like that for @text=sometext and not just me doin' it wrong way :)

Change History

comment:1 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from event to core

The @ selector is an attribute selector. Please use the :contains() selector.

$('a:contains(sometext)').click();

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.