W3C home > Mailing lists > Public > public-html@w3.org > August 2011

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

From: <bugzilla@jessica.w3.org>
Date: Sun, 28 Aug 2011 22:02:57 +0000
To: public-html@w3.org
Message-ID: <bug-13941-2495@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:37 GMT