[Bug 13941] New: SPACE key scrolling when no element is focused, is targetet at <html> - and not at <body>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13941

           Summary: SPACE key scrolling when no element is focused, is
                    targetet at <html> - and not at <body>
           Product: HTML WG
           Version: unspecified
          Platform: PC
               URL: http://dev.w3.org/html5/spec/editing#focus
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


The following definition is either incorrect or impresice:

]]
  when no element is focused, key events received by
  the document must be targeted at the body element.
]]

If the above statement was true, then for the following demo-document, to press
the SPACE key would start to scroll the <body> element - however as a matter of
fact, nothing happens:

data:text/html;charset=UTF-8,<!DOCTYPE html><html
tabindex="-1"><style>html{height:100px;overflow:scroll;border:inset red
1em;width:95%;margin:auto;text-align:center;}body{height:100px;overflow:scroll;margin:0;border:inset
orange 1em;}html:before
{content:"<html>";line-height:1;padding:0;font-size:200px;}body:before
{content:"<body>";line-height:1;padding:0;font-size:200px;}</style><body
tabindex="1

The correct thing to say should EITHER be that when no element is focused, then
key  events are directed at <html>, OR the spect should ad an exception for
scrolling events.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Sunday, 28 August 2011 22:02:58 UTC