InputElement({String type })

Source

factory InputElement({String type}) {
  InputElement e = document.createElement("input");
  if (type != null) {
    try {
      // IE throws an exception for unknown types.
      e.type = type;
    } catch(_) {}
  }
  return e;
}