<?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>19981</bug_id>
          
          <creation_ts>2012-11-16 09:43:47 +0000</creation_ts>
          <short_desc>&quot;or&quot; and &quot;otherwise&quot; may be confusing</short_desc>
          <delta_ts>2012-11-16 12:11:11 +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>Encoding</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="Martin Dürst">duerst</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+encodingspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78384</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Dürst">duerst</who>
    <bug_when>2012-11-16 09:43:47 +0000</bug_when>
    <thetext>The spec contains the following sentence:

&quot;If label is an ASCII case-insensitive match for any of the labels listed in the table below, return the corresponding encoding, or return failure otherwise.&quot;

In the last clause, the &quot;or&quot; does not match &quot;otherwise&quot;, which may lead to confusion. Please reword as:

&quot;If label is an ASCII case-insensitive match for any of the labels listed in the table below, return the corresponding encoding. Otherwise, return failure.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78390</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-16 11:45:51 +0000</bug_when>
    <thetext>How about &quot;and return failure otherwise&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78393</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Dürst">duerst</who>
    <bug_when>2012-11-16 11:50:25 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; How about &quot;and return failure otherwise&quot;?

Works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78396</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-16 12:11:11 +0000</bug_when>
    <thetext>https://github.com/whatwg/encoding/commit/8001dcbb05560a3591f5cc0fc51bbfc1928c0421</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>