Skip to main content

Bug Tracker

Side navigation

#1243 closed bug (invalid)

Opened May 24, 2007 11:00PM UTC

Closed May 30, 2007 11:34PM UTC

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

Attachments (0)
Change History (1)

Changed May 30, 2007 11:34PM UTC by brandon comment:1

component: eventcore
resolution: → invalid
status: newclosed

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

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