<?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>19614</bug_id>
          
          <creation_ts>2012-10-19 01:55:04 +0000</creation_ts>
          <short_desc>The first step of close method algorithm isn&apos;t clear to understand.</short_desc>
          <delta_ts>2013-02-06 21:05:30 +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>http://www.whatwg.org/specs/web-apps/current-work/#dom-websocket-close</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>silver_ghost</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76644</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-10-19 01:55:04 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#dom-websocket-close
Complete: http://www.whatwg.org/c#dom-websocket-close

Comment:
The first step of close method algorithm isn&apos;t clear to understand. Also as I
read in RFC http://tools.ietf.org/html/rfc6455#section-7.4.2 codes from 1000
to 4999 can appear in closing message. So I think this section of websocket
specification has error.

Posted from: 2a00:f480:4:148:69c5:a16b:6412:9c1e
User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18 WebMoney Advisor</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78233</commentid>
    <comment_count>1</comment_count>
    <who name="">silver_ghost</who>
    <bug_when>2012-11-12 20:30:22 +0000</bug_when>
    <thetext>The first step of close method algorithm isn&apos;t clear to understand. Also as I read in RFC http://tools.ietf.org/html/rfc6455#section-7.4.2 codes from 1000 to 4999 can appear in closing message. But draft states that only 1000 and 3000-4999 are acceptable. So I think this section of websocket specification has error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82442</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-01-31 22:55:24 +0000</bug_when>
    <thetext>Codes 1001-2999 are not codes that it makes sense for a script to specify.

Can you elaborate on why that paragraph is hard to understand, though? It seems precise and clear...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82455</commentid>
    <comment_count>3</comment_count>
    <who name="">silver_ghost</who>
    <bug_when>2013-02-01 01:04:57 +0000</bug_when>
    <thetext>1. I&apos;ve just read http://tools.ietf.org/html/rfc6455#section-11.7. I think you are right. Maybe you are right: all other codes are for internal usage.
2. Is it clear whether &quot;is not an integer equal to 1000 or in the range 3000 to 4999&quot; is &quot;!(1000 AND 3000..4999)&quot; or &quot;!1000 AND 3000..4999&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82641</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-06 21:03:54 +0000</bug_when>
    <thetext>&quot;!1000 AND 3000..4999&quot; would be silly, since the first part wouldbe redundant with the second. But to remove all doubt, I&apos;ve clarified the prose.

Thanks for the feedback; send me an e-mail if you would like to be acknowledged by a different name than &quot;Silver Ghost&quot;. My e-mail is ian@hixie.ch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82642</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-02-06 21:05:30 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7698.
Check-in comment: Clarify
http://html5.org/tools/web-apps-tracker?from=7697&amp;to=7698</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>