Bug Tracker

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2312 closed bug (invalid)

.focus() bug in IE

Reported by: goetsu Owned by:
Priority: major Milestone: 1.2.4
Component: event Version: 1.2.2
Keywords: Cc:
Blocked by: Blocking:


I have tried to do : <a id='contentsection' onfocus='alert('toto');'></a>

and with jquery : $("#contentsection").focus();

I don't show the alert box in IE (6and 7 at least). It work well with firefox. I don't know if it's a jquery bug or if it's because of the ie keyboard bug http://juicystudio.com/article/ie-keyboard-navigation.php

Change History (4)

comment:1 Changed 15 years ago by davidb

Just a quick note, it might be safer to change your quotes up. For example: "alert('toto')", or 'alert("toto")'.

If that fixes it, please close.

comment:2 Changed 15 years ago by flesler

Resolution: invalid
Status: newclosed

comment:3 Changed 15 years ago by flesler

onfocus='alert('toto');' is invalid Javascript/HTML.

comment:4 Changed 15 years ago by flesler

Note: See TracTickets for help on using tickets.