<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Safari v3 bug</title> <!-- Safari v3.0.4 (523.12.9) Windows XP Safari v3.0.4 (523.12) Mac OS X 10.4.11 Bug: REGRESSION: pressing space while focused on a checked radio input should not scroll container. To reproduce: Press TAB to focus radio input. Select radio with SPACE. Press SPACE again. Expected: Container should not scroll if checked radio input is the event target. Focus should not shift. works as expected in Safari v2.0.4. and current versions of Opera, Firefox, and IE. --> </head> <body> <div style="height:300px; overflow:auto"> <form action=""> <fieldset style="margin-left:1em;border:0"> <input type="radio" name="input-p1q1-1" />answer1<br /> <input type="radio" name="input-p1q1-2" />answer2<br /> <input type="radio" name="input-p1q1-3" />answer3<br /> <input type="radio" name="input-p1q1-4" />answer4<br /> </fieldset> <p style="height:300px"> </p> </form> </div> </body> </html>
Created attachment 17611 [details] example page
Confirmed. Bug reproduces with the earliest WebKit nightly, r11976, with Safari 2.0.4 (419.3) on Mac OS X 10.4.11 (8S165).
I cannot reproduce this with shipping Safari 3.1 or a locally built r35406. I suspect that this was fixed when correcting keydown/keypress handling.