<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13941</bug_id>
          
          <creation_ts>2011-08-28 22:02:56 +0000</creation_ts>
          <short_desc>SPACE key scrolling when no element is focused, is targetet at &lt;html&gt; - and not at &lt;body&gt;</short_desc>
          <delta_ts>2011-10-24 18:07:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/editing#focus</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55959</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-08-28 22:02:56 +0000</bug_when>
    <thetext>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 &lt;body&gt; element - however as a matter of fact, nothing happens:

data:text/html;charset=UTF-8,&lt;!DOCTYPE html&gt;&lt;html tabindex=&quot;-1&quot;&gt;&lt;style&gt;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:&quot;&lt;html&gt;&quot;;line-height:1;padding:0;font-size:200px;}body:before {content:&quot;&lt;body&gt;&quot;;line-height:1;padding:0;font-size:200px;}&lt;/style&gt;&lt;body tabindex=&quot;1

The correct thing to say should EITHER be that when no element is focused, then key  events are directed at &lt;html&gt;, OR the spect should ad an exception for scrolling events.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55960</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-08-28 22:08:21 +0000</bug_when>
    <thetext>A better dataURI, for trying the test document:

data:text/html;charset=utf-8;base64,PCFET0NUWVBFIGh0bWw+DQo8aHRtbC
B0YWJpbmRleD0iLTEiPg0KIDxzdHlsZT4NCiAgIGh0bWx7aGVpZ2h0OjEwMHB4O292
ZXJmbG93OnNjcm9sbDtib3JkZXI6aW5zZXQgcmVkIDFlbTt3aWR0aDo5NSU7bWFyZ2
luOmF1dG87dGV4dC1hbGlnbjpjZW50ZXI7fQ0KICAgYm9keXtoZWlnaHQ6MTAwcHg7
b3ZlcmZsb3c6c2Nyb2xsO21hcmdpbjowO2JvcmRlcjppbnNldCBvcmFuZ2UgMWVtO3
0NCiAgIGh0bWw6YmVmb3JlIHtjb250ZW50OiI8aHRtbD4iO2xpbmUtaGVpZ2h0OjE7
cGFkZGluZzowO2ZvbnQtc2l6ZToyMDBweDt9DQogICBib2R5OmJlZm9yZSB7Y29udG
VudDoiPGJvZHk+IjtsaW5lLWhlaWdodDoxO3BhZGRpbmc6MDtmb250LXNpemU6MjAw
cHg7fQ0KPC9zdHlsZT4NCjxib2R5IHRhYmluZGV4PSIxIj4=</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58767</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-24 18:07:30 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: As far as I can tell from this test:

   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1226

...the spec is correct. The document does scroll, but that just seems to be the UA&apos;s behaviour for when a space bar is hit when no element has focus; the events are in fact targetted at the body element.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>