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 22838 - Need a default task source to use when none is appropriate
Summary: Need a default task source to use when none is appropriate
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-30 15:56 UTC by Mounir Lamouri
Modified: 2013-10-23 22:17 UTC (History)
2 users (show)

See Also:


Attachments

Description Mounir Lamouri 2013-07-30 15:56:40 UTC
I needed to define a task source for a simple thing in the Screen Orientation API specification (when the device orientation changes, a task is queued to change a value and fire an event) but no task source listed in the specification was making sense and defining a new one would be quite an overhead.

I would not be surprised if vendors already use the "DOM Manipulation" task source as the default task source and I wonder if the specification should encourage that at some extent.
Comment 1 Ian 'Hixie' Hickson 2013-07-31 21:35:18 UTC
If there's no ordering correlation between when your event fires and anything else, then you should invent a new one. The only reason two events should use the same event source is if they are in some way required to fire in a predictabel order.
Comment 2 Ian 'Hixie' Hickson 2013-10-23 22:17:30 UTC
Please reopen this if you disagree or if I missed the point somehow. Thanks.