Bug Tracker

Ticket #2312 (closed bug: invalid)

Opened 10 months ago

Last modified 7 months ago

.focus() bug in IE

Reported by: goetsu Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.4 Component: event
Version: 1.2.2 Keywords:
Cc: Needs: Review

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

Change History

Changed 9 months 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.

Changed 7 months ago by flesler

  • status changed from new to closed
  • resolution set to invalid

Changed 7 months ago by flesler

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

Changed 7 months ago by flesler

  • milestone changed from 1.2.3 to 1.2.4
Note: See TracTickets for help on using tickets.