dfilatov / vidom

Library to build UI based on virtual DOM
MIT License
415 stars 16 forks source link

value isn't kept unchanged when a type attribute is modified #70

Closed ghost closed 9 years ago

ghost commented 9 years ago

value isn't kept unchanged when type is modified

Patch this:

  var node1 = createNode("input").attrs({ type: "text", value: "notWorking" });
   var node2 = createNode("input").attrs({ type: "checkbox", value: "notWorking" });

After patching, check with this:

// 'element' is the same as the patched node
element.hasAttribute("value")

Result: false Expected: true

dfilatov commented 9 years ago

In which browser?

ghost commented 9 years ago

Internet Explorer

dfilatov commented 9 years ago

fixed, check