Skip to content

IE and input types #60

Closed
Closed

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']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions