<?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>19595</bug_id>
          
          <creation_ts>2012-10-18 09:45:03 +0000</creation_ts>
          <short_desc>Use NotSupportedError for unsupported labels</short_desc>
          <delta_ts>2012-10-30 17:13:16 +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>PC</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="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>jonas</cc>
    
    <cc>jsbell</cc>
    
    <cc>mike</cc>
          
          <qa_contact>sideshowbarker+encodingspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76565</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-10-18 09:45:03 +0000</bug_when>
    <thetext>http://encoding.spec.whatwg.org/#interface-textencoder

[[
If encoding is failure, or is none of
 utf-8, utf-16, and utf-16be,
 throw a
 &quot;EncodingError&quot;.
]]

I think it makes more sense to throw NotSupportedError here. Similarly for TextDecoder constructor&apos;s step 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76566</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-10-18 09:46:20 +0000</bug_when>
    <thetext>sicking, jsbell, what do you guys think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76572</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-10-18 12:45:29 +0000</bug_when>
    <thetext>Actually, maybe we should throw the exception that is thrown for enums. I&apos;m a bit hesitant to make both into an actual enum, but those are the semantics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76574</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-10-18 12:46:38 +0000</bug_when>
    <thetext>Which would be TypeError.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76584</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-10-18 13:37:41 +0000</bug_when>
    <thetext>https://github.com/whatwg/encoding/commit/d32e3004d698fcba2e2361f00ae035a0a097b306
http://encoding.spec.whatwg.org/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>