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 22001 - [HTML] editorial: "queue a task" ambiguity
Summary: [HTML] editorial: "queue a task" ambiguity
Status: RESOLVED FIXED
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-05-10 21:17 UTC by Michael Dyck
Modified: 2013-06-14 18:19 UTC (History)
2 users (show)

See Also:


Attachments

Description Michael Dyck 2013-05-10 21:17:20 UTC
When the spec says to:
   queue a task to do X and do Y
it's unclear whether to parse that as
   queue a task to (do X and do Y)
or
   (queue a task to do X) and (do Y)

(E.g., 4.8.10.6 "Offsets into the media resource" has:
    the user agent may queue a task to remove the track ...
    and then fire a trusted event ...
Is the event fired inside the task or outside?)

I think the former interpretation is usually intended,
but I'm also pretty sure that the latter is sometimes intended
(e.g., when "do Y" = "abort these steps" or when it queues another task).

To clarify, you could use a well-placed "first":
   queue a task to first do X. and then do Y
vs
   first queue a task to do X, and then do Y
Comment 1 Ian 'Hixie' Hickson 2013-06-07 23:37:02 UTC
I can fix specific cases if you list them, but I'm not sure how to efficiently find these.
Comment 2 contributor 2013-06-07 23:39:13 UTC
Checked in as WHATWG revision r7943.
Check-in comment: Clarify a bit
http://html5.org/tools/web-apps-tracker?from=7942&to=7943
Comment 3 Ian 'Hixie' Hickson 2013-06-14 18:19:14 UTC
Please reopen or file new bugs if you find specific ambiguous cases. (It's fine to file lots of bugs.)