Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 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:

Description

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 12 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 12 years ago by flesler

Resolution: invalid
Status: newclosed

comment:3 Changed 12 years ago by flesler

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

comment:4 Changed 12 years ago by flesler

Milestone: 1.2.31.2.4
Note: See TracTickets for help on using tickets.