<?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>23601</bug_id>
          
          <creation_ts>2013-10-23 06:00:25 +0000</creation_ts>
          <short_desc>Define a variable to replace &quot;with prejudice&quot;</short_desc>
          <delta_ts>2013-11-19 21:15:47 +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>WebSocket API (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Takeshi Yoshino">tyoshino</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <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>95151</commentid>
    <comment_count>0</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2013-10-23 06:00:25 +0000</bug_when>
    <thetext>The definition of close with prejudice is not straightforward. Sometimes it takes minutes to interpret it.

I suggest that we replace

&gt; If the user agent was required to fail the WebSocket connection or the WebSocket connection is closed with prejudice, fire a simple event named error at the WebSocket object. [WSP]

into

&gt; If the user agent was required to fail the WebSocket connection or the closed with prejudice flag is true, fire a simple event named error at the WebSocket object. [WSP]

and insert this text

&gt; When it is said to close the WebSocket connection with prejudice, run these steps:
&gt; - Set the closed with prejudice flag.
&gt; - close the WebSocket connection

and put occurrences of &quot;close the WebSocket connection with prejudice&quot; in the send() definition into an anchor pointing the new text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95220</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-23 19:08:22 +0000</bug_when>
    <thetext>I don&apos;t really understand how that would change.

&quot;with prejudice&quot; is already hyperlinked to the relevant part of the spec. The term is only used four times. It basically already is a flag (actually, an argument).

Can you elaborate on what is confusing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95274</commentid>
    <comment_count>2</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2013-10-24 02:26:56 +0000</bug_when>
    <thetext>Yes, after clicking the link and thinking a bit, I can understand that. But at least for me and another (English native), the link looked weird (&quot;hmm, this text is also referring to the WebSocket connection is closed with prejudice. where&apos;s the actual definition...?&quot;) and tried to find explicit definition of close the WebSocket connection with prejudice that could be placed somewhere else.

Just adding &quot;flag&quot; to &quot;prejudice&quot; is also fine. When I was reading a text in DOM Promises spec that is using &quot;synchronous flag&quot;, I didn&apos;t find it confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95377</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-25 23:34:53 +0000</bug_when>
    <thetext>Yeah, maybe I&apos;m just being too cute here, and it&apos;s hurting the readability. I can look into changing the term to something else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96538</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-11-19 21:15:47 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8298.
Check-in comment: Reword the concept of closing a WebSocket with prejudice so that it&apos;s more obviously a flag
http://html5.org/tools/web-apps-tracker?from=8297&amp;to=8298</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>