Top > Misc > Opera HTMLInput Element Javascript Bug?

Opera HTMLInputElement Javascript Bug?

var inp1 = document.createElement('input');
inp1.value = "foo"
inp1.type = "text"
document.getElementById('i1').appendChild(inp1)

var inp2 = document.createElement('input');
inp2.type = "text"
inp2.value = "bar"
document.getElementById('i2').appendChild(inp2);

Description

On Opera Browser, when I set "type" attribute after setting "type" attribute on HTMLInputElement, "value" attribute will be "undefined". Is it a bug?