<?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>16938</bug_id>
          
          <creation_ts>2012-05-04 22:40:44 +0000</creation_ts>
          <short_desc>Change numeric constants to enumerated strings</short_desc>
          <delta_ts>2012-07-17 21:55:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Media Source Extensions</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="Odin Hørthe Omdal">odinho</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>acolwell</cc>
    
    <cc>ddorwin</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67340</commentid>
    <comment_count>0</comment_count>
    <who name="Odin Hørthe Omdal">odinho</who>
    <bug_when>2012-05-04 22:40:44 +0000</bug_when>
    <thetext>From looking around at code on the internet, numeric constants are not really used at all. They don&apos;t fit very well into javascript, as it is not typed, so it&apos;s easier and shorter to just write the constant (1) instead of the (node.MY_CONSTANT).

IndexedDB recently made the change to a enum of strings.

http://lists.w3.org/Archives/Public/public-webapps/2012JanMar/thread.html#msg814

The disadvantage is that numeric constants are sadly used elsewhere. So it&apos;s more consistent continue as they are now. However, using enumerated strings will make the code much more readable and obvious.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70055</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-07-17 21:55:14 +0000</bug_when>
    <thetext>The numeric constants were removed during the conversion to the object-oriented API(https://www.w3.org/Bugs/Public/show_bug.cgi?id=17082). Strings are used now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>