<?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>25357</bug_id>
          
          <creation_ts>2014-04-15 22:52:51 +0000</creation_ts>
          <short_desc>Target for event type is not complete</short_desc>
          <delta_ts>2014-04-29 00:28:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - DOM3 Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Kacmarcik">garykac</reporter>
          <assigned_to name="Gary Kacmarcik">garykac</assigned_to>
          <cc>crimsteam</cc>
    
    <cc>mike</cc>
    
    <cc>travil</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103912</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2014-04-15 22:52:51 +0000</bug_when>
    <thetext>(originally from 25295)

Target for event type is not complete. I understand that you wrote:
&quot;When used with an [XML 1.0] or [HTML5] application, the specifications of those languages MAY restrict the semantics and scope (in particular the possible event targets) associated with an event type.&quot;

But now we have different event target within the same specification:
for event resize (https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#event-type-resize) we have defaultView but in event table (https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#h4_event-types-list) we have defaultView, Document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103927</commentid>
    <comment_count>1</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2014-04-16 00:32:51 +0000</bug_when>
    <thetext>These should be consistent. I&apos;ll add Document to the table where it is missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103964</commentid>
    <comment_count>2</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-16 14:07:49 +0000</bug_when>
    <thetext>But better should be delete Document, not add, unless there is a case for Document.

I can only say that in HTML this apply to:
defaultView
some Element (like video, maybe frames to), detail: https://bugzilla.mozilla.org/show_bug.cgi?id=992685

Similar for scroll, don&apos;t see any case when Document is a target. 

Maybe if we considering synthetic event then Document and Window will always, but everything that support EventTarget will always fit.

Its depend what you want put on this table. If &quot;List of DOM3 Event Types&quot; has only &quot;Trusted event target types&quot; then other tables should have the same (only trusted). The same remark may apply to other properties, consider only trusted cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104127</commentid>
    <comment_count>3</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-21 21:54:02 +0000</bug_when>
    <thetext>Simmilar for wheel event type:
Target 	defaultView, Document, Element

Any practical case where a trusted event is fired at defaultView or Document? All browser use only element (unless I omitted something).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104630</commentid>
    <comment_count>4</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-04-28 23:39:30 +0000</bug_when>
    <thetext>Gary will be making this update as well...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104641</commentid>
    <comment_count>5</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2014-04-29 00:18:11 +0000</bug_when>
    <thetext>Fixed as part of 25358.
https://dvcs.w3.org/hg/dom3events/rev/40019b0b87c3

Document was removed where it wasn&apos;t appropriate for trusted events.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>