Skip to content

Commit

Permalink
add attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Feb 10, 2025
1 parent d5d3c04 commit 1104149
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type input = {
spellcheck: boolean | "true" | "false" | "default",
wrap: "hard" | "soft" | "off",
autocapitalize: "on" | "off" | "sentences" | "none" | "words" | "characters",
autocomplete: boolean | "on" | "off" | string,
autocomplete: boolean | AutoFill,
autofocus: boolean,
maxlength: htmlNumber|string,
minlength: htmlNumber|string,
Expand Down Expand Up @@ -150,7 +150,7 @@ export const htmlElementAttributes = {
video: [...src, ...widthAndHeight, "autoplay", "controls", "loop", "muted", "poster", "preload", "playsinline"],
textarea: [...input, "name", "value", "value:out", "value:in", "cols", "rows"],
option: ["value", "selected", "disabled"],
select: ["value", "required"],
select: ["value", "autocomplete", "required"],
dialog: ["open"],
table: ["cellspacing", "cellpadding", "align", "width", "border"],
meta: ["content"],
Expand Down Expand Up @@ -218,7 +218,8 @@ export type htmlElementAttributeValues = {

select: {
required: boolean,
value: primitive
value: primitive,
autocomplete: boolean | AutoFill,
},

progress: {
Expand Down

0 comments on commit 1104149

Please sign in to comment.