This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Description
Cross posting from HTMLBars: tildeio/htmlbars#380
We suffer from the same issue. Setting the type of an input that is already a part of any DOM tree will cause an error in IE < 9.
patch(container, function() {
elementVoid('input', null, null, 'type', 'text');
});
We're safe using statics, since the node won't have been inserted anywhere yet — statics are set during the creation and before alignment can insert it.
patch(container, function() {
elementVoid('input', null, ['type', 'text']);
});