Open xushengfeng opened 3 weeks ago
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#browser_compatibility HTMLInputElement type now is string, supporting like 'checkbox ' is better
HTMLInputElement
type
string
| "button" | "checkbox" | "color" | "date" | "datetime-local" | "email" | "file" | "hidden" | "image" | "month" | "number" | "password" | "radio" | "range" | "reset" | "search" | "submit" | "tel" | "text" | "time" | "url" | "week";
And empty string as an alias for text
text
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#browser_compatibility
HTMLInputElement
type
now isstring
, supporting like 'checkbox ' is better