Closed Bug 241621 Opened 20 years ago Closed 20 years ago

space doesn't scroll when XHTML link has focus

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: aaronlev)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

 
Steps to reproduce:
1. Focus the link in the testcase.
2. Press space.

Expected: scroll down a page
Result: nothing happens

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040423
Firefox/0.8.0+
Also happens with a Seamonkey nightly build from yesterday on Linux.
OS: Windows XP → All
Very odd....  XHTML and HTML <a> elements are the same class and share the same
event-handling code, none of which ever looks at space bar presses....
Hardware: PC → All
See the patch in bug 214843 -- it changed code like:

focusedElement->GetTagName(tagName);
if (tagName == NS_LITERAL_STRING("A")) {

to something that may work in XHTML... so this may be fixed.
Depends on: 214843
Yes, that fixed it :)
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Let's not forget that future versions of XHTML may allow an href on any element.
Then we're going to have to go back and look for any code like this.
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: