Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports more refined HTMLInputElement type attributes #1782

Open
xushengfeng opened this issue Aug 18, 2024 · 1 comment
Open

Supports more refined HTMLInputElement type attributes #1782

xushengfeng opened this issue Aug 18, 2024 · 1 comment

Comments

@xushengfeng
Copy link

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#browser_compatibility
HTMLInputElement type now is string, supporting like 'checkbox ' is better

    | "button"
    | "checkbox"
    | "color"
    | "date"
    | "datetime-local"
    | "email"
    | "file"
    | "hidden"
    | "image"
    | "month"
    | "number"
    | "password"
    | "radio"
    | "range"
    | "reset"
    | "search"
    | "submit"
    | "tel"
    | "text"
    | "time"
    | "url"
    | "week";
@HolgerJeromin
Copy link
Contributor

And empty string as an alias for text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants