<?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>21695</bug_id>
          
          <creation_ts>2013-04-15 07:53:58 +0000</creation_ts>
          <short_desc>Clarify &quot;the task is queued in the context of X&quot;</short_desc>
          <delta_ts>2013-06-04 20:38:38 +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>86201</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2013-04-15 07:53:58 +0000</bug_when>
    <thetext>In 7.1.4.1 &quot;Definitions&quot;,
there&apos;s the text:
    Each task [...] is associated with a Document;
    if the task was queued in the context of an element, then [...];
    if the task was queued in the context of a browsing context, then [...];
    if the task was queued by or for a script then [...].

This appears to assume that we can detect when each of those three possibilities holds, but it&apos;s not clear how.

The only other place in the spec that connects tasks with the phrase &quot;in the context of&quot; is in resource selection algorithm (4.8.10.5), where step (10).10 says:
    Failed: Queue a task, using the DOM manipulation task source,
    to fire a simple event named error at the candidate element,
    in the context of the fetching process that was used to try
    to obtain candidate&apos;s corresponding media resource in the
    resource fetch algorithm.
But:
(1) It&apos;s unclear whether &quot;in the context of&quot; modifies &quot;Queue a task&quot; or
    &quot;fire a simple event&quot;.
(2) Even if it modifies &quot;Queue a task&quot;, it says &quot;in the context of the
    fetching process&quot;, which doesn&apos;t appear to match any of the three
    possibilities raised above.

[By the way, in the resource selection algorithm, where it says:
    &quot;Otherwise, the source elements will be used; run these substeps:&quot;
that should probably be made a separate step (&lt;li&gt;).]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88656</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-04 20:35:54 +0000</bug_when>
    <thetext>There&apos;s three things here (please file just one per bug in the future!).

1: The stuff about which Document a task is associated with. In practice, I think this is pretty unambiguous. If there&apos;s ever a case where you can&apos;t work out which it is, please file specific bugs on those.

2: I&apos;ve no idea what I meant there. Removed everything from &quot;in the context of&quot;.

3: Why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88657</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-06-04 20:38:38 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7896.
Check-in comment: Cannot work out what this text was driving at, so... let&apos;s remove it... Let me know if you know what it meant.
http://html5.org/tools/web-apps-tracker?from=7895&amp;to=7896</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>