Closed
Bug 130974
Opened 23 years ago
Closed 23 years ago
hitting spacebar in a textarea causes frame to scroll
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: phelix, Assigned: alexsavulov)
Details
Attachments
(2 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311
BuildID: 2002031104
When typing text into a textarea, hitting the spacebar causes the page to
scroll. This only happens in the following situations.
1) page containing the textarea is in a frame (ie, more than 1 frame in the page)
2) The textarea has the javascript -- onfocus='this.select()'
Removing the javascript fixes the behavior.
This is something new with the latest version of mozilla, previous versions did
not exhibit this problem. I don't know wnough about javascript to know if this
behavior is a bug or not.
If you're curious, I discovered this bug while using phpMyAdmin 2.2.4.
Reproducible: Always
Steps to Reproduce:
In the "Additional COmments" section, I've added the HTML code for three pages
which reporduce this bug. Just look at bugframe.htm and type some text into the
textbox. Whenever you hit space, the frame should scroll
Actual Results: The frame scrolls whenever you hit the spacebar
Expected Results: a space should be entered into the textarea
---------bugframe.htm----------------
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" scrolling="NO" noresize src="blank.htm">
<frame name="mainFrame" src="bug.html">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
----------------------------------
-----------blank.htm--------------
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
------------------------------------
--------bug.htm---------------------
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Dummy line</p>
<p>dummy line</p>
<p> </p>
<form name="form1" method="post" action="">
<p>
<textarea name="sql_query" cols="40" rows="7" wrap="virtual"
onfocus="this.select()"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p>line 1</p>
<p>line 2</p>
<p>line 3</p>
<p>line 4</p>
<p>line 5</p>
<p>line 6</p>
<p>line 7</p>
<p>line 8</p>
<p> line 9</p>
<p>line 10</p>
<p>line 11</p>
<p>line 12</p>
<p>line 13</p>
<p>line 14</p>
<p>line 15</p>
<p>line 16</p>
<p>line 17</p>
<p>line 18</p>
<p>line 19</p>
<p>line 20</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
----------------------------------------
Assignee | ||
Comment 1•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Attachment #74157 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 2•23 years ago
|
||
set focus in the textarea and hit the spacebar
Comment 3•23 years ago
|
||
*** This bug has been marked as a duplicate of 35952 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 4•23 years ago
|
||
THIS SUX!
ok here are some more observations:
- if you type letters after the space bars it bounces back to the text area
- if you activate another window and come back it does not bouce anymore
- if then you click in the other frame and then again in the text area it starts
bouncing again when the spacebar is hit
WORKAROUND:
If you don't want to switch to another window and back, don't look while you're
typing and end the sentence with anything other than a blank space.
( JUST KIDDING! :-)
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•