title: HTML5 input type color doesn't show value when created via js
body: <p>I am creating a table via javascript and one column will contain an html color picker. The problem that I have is that in Chrome the default value is set but the color that is displayed on the color picker is black.</p>
  
  <p>This is the javascript that I am using</p>
  
  <pre><code>c = r.insertCell(1);
  c.setAttribute('class','second');
  inp=document.createElement("input"); 
  inp.setAttribute('type','color');
  inp.setAttribute('id','colo_'+i);
  inp.setAttribute('value','#ffffff');
  inp.setAttribute('class','datafield');
  inp.addEventListener('change', saveFields);
  c.appendChild(inp);
  </code></pre>
  
  <p>This is the html that is generated from if</p>
  
  <p>&lt;td class="second"&gt;<br />
      &lt;input type="color" id="colo_0" value="#8080ff" class="datafield"&gt;<br />
  &lt;/td&gt;</p>
  
  <p>Is this a bug or am I doing something wrong?</p>