<?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>16312</bug_id>
          
          <creation_ts>2012-03-11 05:18:26 +0000</creation_ts>
          <short_desc>use of undocumented &apos;switch&apos; convention for rule formulation is ambiguous</short_desc>
          <delta_ts>2013-11-11 02:01:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>XHR</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dvcs.w3.org/hg/xhr/raw-file/8d4e9ccfdbd4/Overview.html#infrastructure-for-the-send()-method</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Glenn Adams">glenn</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>art.barstow</cc>
    
    <cc>hsteen</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65320</commentid>
    <comment_count>0</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-03-11 05:18:26 +0000</bug_when>
    <thetext>some, but not all of the rule formulations in XHR are based on an undocumented &apos;switch&apos; convention, that, without further explanation, allows ambiguous interpretation:

for example, in 4.7.7 appears the following:

↪ Once the whole response entity body has been received
↪ If there is no response entity body and the state is LOADING
↪ If there is no response entity body and the synchronous flag is set

        Switch to the DONE state.

if I rephrase this as:

↪ If A
↪ If B
↪ If C

        Then X

then which of the following is meant by the above convention?

#1

If A &amp;&amp; B &amp;&amp; C then X then break from switch

#2

If A &amp;&amp; B &amp;&amp; C then X then fall through to next rule

#3

If A || B || C then X then break from switch

#4

If A || B || C then X then fall through to next rule

any of these are possible interpretations given the lack of an explanation of this convention

[i note that this convention also appears in HTML5 drafts and is also not documented there either]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66073</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-26 17:27:12 +0000</bug_when>
    <thetext>Maybe get it changed first in HTML?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66086</commentid>
    <comment_count>2</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-03-26 22:23:13 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Maybe get it changed first in HTML?

that would work for me (i.e., define in HTML then put a reference in XHR to that definition);

btw, which of #1 through #4 is the intended interpretation? i still do now know how it is intended to be interpreted...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66105</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-27 07:37:02 +0000</bug_when>
    <thetext>It&apos;s #3, which is consistent with how &lt;dl&gt; is defined, but that is probably not quite enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66106</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-27 07:37:26 +0000</bug_when>
    <thetext>Ian, any ideas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95951</commentid>
    <comment_count>5</comment_count>
    <who name="Hallvord R. M. Steen">hsteen</who>
    <bug_when>2013-11-07 14:31:44 +0000</bug_when>
    <thetext>I think this is now a pretty common convention and sufficiently clear that it needs no further explanation. If it needs explanation, that explanation doesn&apos;t belong in XHR as it&apos;s a convention shared by lots of specs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95956</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-11-07 14:39:18 +0000</bug_when>
    <thetext>So I don&apos;t like you closing these bugs. Should we get a separate WHATWG XMLHttpRequest component? There&apos;s an outstanding question in comment 4 and there&apos;s indeed room for confusion, even though we use the pattern a lot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95973</commentid>
    <comment_count>7</comment_count>
    <who name="Hallvord R. M. Steen">hsteen</who>
    <bug_when>2013-11-07 20:51:51 +0000</bug_when>
    <thetext>No problem - I won&apos;t resolve more bugs (unless by prior agreement with you). I think the basic point still stands - why should this convention be defined in the XHR spec when used by lots of others too? - so perhaps we should move this bug to another component or something. (Do we have a &quot;meta-spec&quot; about spec markup?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95981</commentid>
    <comment_count>8</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2013-11-07 21:41:50 +0000</bug_when>
    <thetext>(In reply to Hallvord R. M. Steen from comment #7)
&gt; No problem - I won&apos;t resolve more bugs (unless by prior agreement with you).
&gt; I think the basic point still stands - why should this convention be defined
&gt; in the XHR spec when used by lots of others too? - so perhaps we should move
&gt; this bug to another component or something. (Do we have a &quot;meta-spec&quot; about
&gt; spec markup?)

I agree that it would be better to document this convention in the HTML spec and refer to that definition from XHR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96029</commentid>
    <comment_count>9</comment_count>
    <who name="Hallvord R. M. Steen">hsteen</who>
    <bug_when>2013-11-08 10:16:40 +0000</bug_when>
    <thetext>Isn&apos;t the last part of 
http://www.whatwg.org/specs/web-apps/current-work/multipage/introduction.html#typographic-conventions
sufficiently clear?

Shall we add a new paragraph to section 3 Terminology saying 

&quot;This specification uses the same typographic conventions as [HTML5].&quot;? 

That should be sufficient to close this bug - if Anne agrees this time ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96073</commentid>
    <comment_count>10</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-11-09 01:51:00 +0000</bug_when>
    <thetext>Glenn, is that clear enough?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96084</commentid>
    <comment_count>11</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2013-11-09 14:47:24 +0000</bug_when>
    <thetext>(In reply to Anne from comment #10)
&gt; Glenn, is that clear enough?

Yes, Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96087</commentid>
    <comment_count>12</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2013-11-10 04:01:02 +0000</bug_when>
    <thetext>So, there&apos;s agreement to s/WebAppsWG/HTMLWG/ and s/XHR/HTML5/?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96088</commentid>
    <comment_count>13</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2013-11-10 06:44:05 +0000</bug_when>
    <thetext>(In reply to Art Barstow from comment #12)
&gt; So, there&apos;s agreement to s/WebAppsWG/HTMLWG/ and s/XHR/HTML5/?

I will open a new bug against HTML5, rather than relabeling this bug. The action on this bug is to reference HTML5 conventions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96096</commentid>
    <comment_count>14</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-11-11 02:01:57 +0000</bug_when>
    <thetext>https://github.com/whatwg/xhr/commit/740a409e37321b411bee782fae28224559863e64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>