Opened 16 years ago
Closed 16 years ago
#1243 closed bug (invalid)
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 :)
Change History (1)
comment:1 Changed 16 years ago by
Component: | event → core |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The @ selector is an attribute selector. Please use the :contains() selector.
$('a:contains(sometext)').click();