This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25357 - Target for event type is not complete
Summary: Target for event type is not complete
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - DOM3 Events (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Gary Kacmarcik
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-15 22:52 UTC by Gary Kacmarcik
Modified: 2014-04-29 00:28 UTC (History)
4 users (show)

See Also:


Attachments

Description Gary Kacmarcik 2014-04-15 22:52:51 UTC
(originally from 25295)

Target for event type is not complete. I understand that you wrote:
"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."

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.
Comment 1 Gary Kacmarcik 2014-04-16 00:32:51 UTC
These should be consistent. I'll add Document to the table where it is missing.
Comment 2 Arkadiusz Michalski (Spirit) 2014-04-16 14:07:49 UTC
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'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 "List of DOM3 Event Types" has only "Trusted event target types" then other tables should have the same (only trusted). The same remark may apply to other properties, consider only trusted cases.
Comment 3 Arkadiusz Michalski (Spirit) 2014-04-21 21:54:02 UTC
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).
Comment 4 Travis Leithead [MSFT] 2014-04-28 23:39:30 UTC
Gary will be making this update as well...
Comment 5 Gary Kacmarcik 2014-04-29 00:18:11 UTC
Fixed as part of 25358.
https://dvcs.w3.org/hg/dom3events/rev/40019b0b87c3

Document was removed where it wasn't appropriate for trusted events.