Skip to main content

Bug Tracker

Side navigation

#2312 closed bug (invalid)

Opened February 09, 2008 09:48AM UTC

Closed May 06, 2008 03:40AM UTC

Last modified May 13, 2008 05:40PM UTC

.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

Attachments (0)
Change History (4)

Changed March 14, 2008 04:30PM UTC by davidb comment:1

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.

Changed May 06, 2008 03:40AM UTC by flesler comment:2

resolution: → invalid
status: newclosed

Changed May 06, 2008 03:46AM UTC by flesler comment:3

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

Changed May 13, 2008 05:40PM UTC by flesler comment:4

milestone: 1.2.31.2.4