diff --git a/a.ts b/a.ts index 13f4a7f..546c795 100644 --- a/a.ts +++ b/a.ts @@ -11,6 +11,12 @@ import { renderElement } from "./lib/mod.ts"; * @see */ export interface AElementProps extends GlobalAttributes { + /** + * `attributionsourceid` is an attribute of the [`a`](https://developer.mozilla.org/docs/Web/HTML/Element/a) element. + * @see + * @experimental + */ + attributionsourceid?: string | undefined; /** * `attributionsrc` is an attribute of the [`a`](https://developer.mozilla.org/docs/Web/HTML/Element/a) element. * @see @@ -44,6 +50,12 @@ export interface AElementProps extends GlobalAttributes { * @see */ hreflang?: string | undefined; + /** + * `hreftranslate` is an attribute of the [`a`](https://developer.mozilla.org/docs/Web/HTML/Element/a) element. + * @see + * @experimental + */ + hreftranslate?: string | undefined; /** * `name` is an attribute of the [`a`](https://developer.mozilla.org/docs/Web/HTML/Element/a) element. * @see diff --git a/area.ts b/area.ts index b80a16e..c2877de 100644 --- a/area.ts +++ b/area.ts @@ -57,12 +57,6 @@ export interface AreaElementProps extends GlobalAttributes { * @see */ shape?: string | undefined; - /** - * `tabindex` is an attribute of the [`area`](https://developer.mozilla.org/docs/Web/HTML/Element/area) element. - * @see - * @deprecated - */ - tabindex?: string | undefined; /** * `target` is an attribute of the [`area`](https://developer.mozilla.org/docs/Web/HTML/Element/area) element. * @see diff --git a/deno.json b/deno.json index 273ebdb..880055a 100644 --- a/deno.json +++ b/deno.json @@ -1,14 +1,15 @@ { "lock": false, "name": "@fartlabs/ht", - "version": "0.0.5", + "version": "0.0.6", "imports": { "@mdn/browser-compat-data": "npm:@mdn/browser-compat-data@^5.5.19", "@std/text": "jsr:@std/text@^1.0.8", - "ts-morph": "npm:ts-morph@^22.0.0" + "ts-morph": "npm:ts-morph@^24.0.0" }, "tasks": { - "generate": "deno run -A cli/codegen.ts" + "generate": "deno run -A cli/codegen.ts", + "molt": "deno run -A jsr:@molt/cli -w" }, "exports": { "./cli/codegen.ts": "./cli/codegen.ts", diff --git a/fencedframe.ts b/fencedframe.ts index 861d0a0..9d7780e 100644 --- a/fencedframe.ts +++ b/fencedframe.ts @@ -12,6 +12,24 @@ import { renderElement } from "./lib/mod.ts"; * @experimental */ export interface FencedframeElementProps extends GlobalAttributes { + /** + * `allow` is an attribute of the [`fencedframe`](https://developer.mozilla.org/docs/Web/HTML/Element/fencedframe) element. + * @see + * @experimental + */ + allow?: string | undefined; + /** + * `height` is an attribute of the [`fencedframe`](https://developer.mozilla.org/docs/Web/HTML/Element/fencedframe) element. + * @see + * @experimental + */ + height?: string | undefined; + /** + * `width` is an attribute of the [`fencedframe`](https://developer.mozilla.org/docs/Web/HTML/Element/fencedframe) element. + * @see + * @experimental + */ + width?: string | undefined; } /** diff --git a/html.ts b/html.ts index 1c8f283..cd0512e 100644 --- a/html.ts +++ b/html.ts @@ -11,12 +11,6 @@ import { renderElement } from "./lib/mod.ts"; * @see */ export interface HtmlElementProps extends GlobalAttributes { - /** - * `manifest` is an attribute of the [`html`](https://developer.mozilla.org/docs/Web/HTML/Element/html) element. - * @see - * @deprecated - */ - manifest?: string | undefined; /** * `version` is an attribute of the [`html`](https://developer.mozilla.org/docs/Web/HTML/Element/html) element. * @see diff --git a/input.ts b/input.ts index 02eeb71..1bcaf0a 100644 --- a/input.ts +++ b/input.ts @@ -55,6 +55,11 @@ export interface InputElementProps extends GlobalAttributes { * @see */ alt?: string | undefined; + /** + * `autocomplete` is an attribute of the [`input`](https://developer.mozilla.org/docs/Web/HTML/Element/input) element. + * @see + */ + autocomplete?: string | undefined; /** * `capture` is an attribute of the [`input`](https://developer.mozilla.org/docs/Web/HTML/Element/input) element. * @see @@ -171,6 +176,16 @@ export interface InputElementProps extends GlobalAttributes { * @see */ readonly?: string | undefined; + /** + * `required` is an attribute of the [`input`](https://developer.mozilla.org/docs/Web/HTML/Element/input) element. + * @see + */ + required?: string | undefined; + /** + * `size` is an attribute of the [`input`](https://developer.mozilla.org/docs/Web/HTML/Element/input) element. + * @see + */ + size?: string | undefined; /** * `src` is an attribute of the [`input`](https://developer.mozilla.org/docs/Web/HTML/Element/input) element. * @see @@ -187,12 +202,6 @@ export interface InputElementProps extends GlobalAttributes { * @deprecated */ usemap?: string | undefined; - /** - * `x-moz-errormessage` is an attribute of the [`input`](https://developer.mozilla.org/docs/Web/HTML/Element/input) element. - * @see - * @deprecated - */ - "x-moz-errormessage"?: string | undefined; /** * `type` is the type of the input element. * @see diff --git a/lib/global_attributes.ts b/lib/global_attributes.ts index b964ef5..3428802 100644 --- a/lib/global_attributes.ts +++ b/lib/global_attributes.ts @@ -5,10 +5,15 @@ export interface GlobalAttributes extends DataAttributes { /** @see */ accesskey?: string | undefined; + /** + * @see + * @experimental + */ + anchor?: string | undefined; /** @see */ autocapitalize?: string | undefined; - /** @see */ - autocomplete?: string | undefined; + /** @experimental */ + autocorrect?: string | undefined; /** @see */ autofocus?: string | undefined; /** @see */ @@ -31,22 +36,8 @@ export interface GlobalAttributes extends DataAttributes { inert?: string | undefined; /** @see */ inputmode?: string | undefined; - /** @experimental */ - invokeaction?: string | undefined; - /** @experimental */ - invoketarget?: string | undefined; /** @see */ is?: string | undefined; - /** @see */ - itemid?: string | undefined; - /** @see */ - itemprop?: string | undefined; - /** @see */ - itemref?: string | undefined; - /** @see */ - itemscope?: string | undefined; - /** @see */ - itemtype?: string | undefined; /** @see */ lang?: string | undefined; /** @see */ @@ -72,6 +63,8 @@ export interface GlobalAttributes extends DataAttributes { * @experimental */ virtualkeyboardpolicy?: string | undefined; + /** @see */ + writingsuggestions?: string | undefined; } /** diff --git a/link.ts b/link.ts index 17b3d67..c162c9a 100644 --- a/link.ts +++ b/link.ts @@ -73,12 +73,6 @@ export interface LinkElementProps extends GlobalAttributes { * @see */ media?: string | undefined; - /** - * `methods` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element. - * @see - * @deprecated - */ - methods?: string | undefined; /** * `referrerpolicy` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element. * @see diff --git a/menu.ts b/menu.ts index 7c7652e..b1cf3ec 100644 --- a/menu.ts +++ b/menu.ts @@ -11,12 +11,6 @@ import { renderElement } from "./lib/mod.ts"; * @see */ export interface MenuElementProps extends GlobalAttributes { - /** - * `label` is an attribute of the [`menu`](https://developer.mozilla.org/docs/Web/HTML/Element/menu) element. - * @see - * @deprecated - */ - label?: string | undefined; } /** diff --git a/object.ts b/object.ts index af60667..07f7ed8 100644 --- a/object.ts +++ b/object.ts @@ -73,12 +73,6 @@ export interface ObjectElementProps extends GlobalAttributes { * @deprecated */ standby?: string | undefined; - /** - * `tabindex` is an attribute of the [`object`](https://developer.mozilla.org/docs/Web/HTML/Element/object) element. - * @see - * @deprecated - */ - tabindex?: string | undefined; /** * `type` is an attribute of the [`object`](https://developer.mozilla.org/docs/Web/HTML/Element/object) element. * @see diff --git a/pre.ts b/pre.ts index bcf3155..268fcf7 100644 --- a/pre.ts +++ b/pre.ts @@ -11,12 +11,6 @@ import { renderElement } from "./lib/mod.ts"; * @see */ export interface PreElementProps extends GlobalAttributes { - /** - * `cols` is an attribute of the [`pre`](https://developer.mozilla.org/docs/Web/HTML/Element/pre) element. - * @see - * @deprecated - */ - cols?: string | undefined; /** * `width` is an attribute of the [`pre`](https://developer.mozilla.org/docs/Web/HTML/Element/pre) element. * @see diff --git a/select.ts b/select.ts index a651b44..038fcf7 100644 --- a/select.ts +++ b/select.ts @@ -11,6 +11,11 @@ import { renderElement } from "./lib/mod.ts"; * @see */ export interface SelectElementProps extends GlobalAttributes { + /** + * `autocomplete` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element. + * @see + */ + autocomplete?: string | undefined; /** * `disabled` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element. * @see diff --git a/template.ts b/template.ts index 563728d..6392981 100644 --- a/template.ts +++ b/template.ts @@ -11,11 +11,27 @@ import { renderElement } from "./lib/mod.ts"; * @see */ export interface TemplateElementProps extends GlobalAttributes { + /** + * `shadowrootclonable` is an attribute of the [`template`](https://developer.mozilla.org/docs/Web/HTML/Element/template) element. + * @see + */ + shadowrootclonable?: string | undefined; + /** + * `shadowrootdelegatesfocus` is an attribute of the [`template`](https://developer.mozilla.org/docs/Web/HTML/Element/template) element. + * @see + */ + shadowrootdelegatesfocus?: string | undefined; /** * `shadowrootmode` is an attribute of the [`template`](https://developer.mozilla.org/docs/Web/HTML/Element/template) element. * @see */ shadowrootmode?: string | undefined; + /** + * `shadowrootserializable` is an attribute of the [`template`](https://developer.mozilla.org/docs/Web/HTML/Element/template) element. + * @see + * @experimental + */ + shadowrootserializable?: string | undefined; } /**