<?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>27543</bug_id>
          
          <creation_ts>2014-12-09 07:34:27 +0000</creation_ts>
          <short_desc>Request&apos;s constructor&apos;s step to initialize &quot;mode&quot; needs clarification about conversion from string</short_desc>
          <delta_ts>2014-12-10 17:52:56 +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>Fetch</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Takeshi Yoshino">tyoshino</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+fetchspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116038</commentid>
    <comment_count>0</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2014-12-09 07:34:27 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116039</commentid>
    <comment_count>1</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2014-12-09 07:37:49 +0000</bug_when>
    <thetext>Allowed values for &quot;init&apos;s mode&quot; are strings of &quot;same-origin&quot;, &quot;no-cors&quot;, &quot;cors&quot;. Allowed values for a request&apos;s associated mode are constants defined in the spec of same-origin, no CORS, CORS, and CORS-with-forced-preflight.

Like the definition of the mode attribute&apos;s getter (https://fetch.spec.whatwg.org/#dom-request-mode), the constructor&apos;s algorithm should also define the conversion clearly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116040</commentid>
    <comment_count>2</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2014-12-09 07:40:50 +0000</bug_when>
    <thetext>BTW, is there any reason why there&apos;s no hyphen in the identifier of spec constants &quot;no CORS&quot; and &quot;force cache&quot;? Just historical?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116097</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-12-10 17:49:37 +0000</bug_when>
    <thetext>https://github.com/whatwg/fetch/commit/174a674d250d9a07d61209d06bec87bc729e4c7a

The reason there&apos;s no hyphen there is because no hyphen is required there in the English language, to my knowledge.

Perhaps I should give up on naming internal states slightly differently from enumerations though. Or perhaps IDL should provide this mapping automatically for us (i.e. define what language to use in prose that makes it clear they are the same).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116099</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-12-10 17:52:56 +0000</bug_when>
    <thetext>I filed https://www.w3.org/Bugs/Public/show_bug.cgi?id=27557 to sort out whether IDL can do something here that makes this easier for us.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>