<?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>22001</bug_id>
          
          <creation_ts>2013-05-10 21:17:20 +0000</creation_ts>
          <short_desc>[HTML] editorial: &quot;queue a task&quot; ambiguity</short_desc>
          <delta_ts>2013-06-14 18:19:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>All</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>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87545</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2013-05-10 21:17:20 +0000</bug_when>
    <thetext>When the spec says to:
   queue a task to do X and do Y
it&apos;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 &quot;Offsets into the media resource&quot; 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&apos;m also pretty sure that the latter is sometimes intended
(e.g., when &quot;do Y&quot; = &quot;abort these steps&quot; or when it queues another task).

To clarify, you could use a well-placed &quot;first&quot;:
   queue a task to first do X. and then do Y
vs
   first queue a task to do X, and then do Y</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88948</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-07 23:37:02 +0000</bug_when>
    <thetext>I can fix specific cases if you list them, but I&apos;m not sure how to efficiently find these.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88949</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-06-07 23:39:13 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7943.
Check-in comment: Clarify a bit
http://html5.org/tools/web-apps-tracker?from=7942&amp;to=7943</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89323</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-14 18:19:14 +0000</bug_when>
    <thetext>Please reopen or file new bugs if you find specific ambiguous cases. (It&apos;s fine to file lots of bugs.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>