diff --git a/.changeset/add-search-slot-native-tags.md b/.changeset/add-search-slot-native-tags.md new file mode 100644 index 0000000000..5779143e13 --- /dev/null +++ b/.changeset/add-search-slot-native-tags.md @@ -0,0 +1,7 @@ +--- +"@marko/runtime-tags": patch +"marko": patch +"@marko/compiler": patch +--- + +Add native `` and `` tags. diff --git a/packages/compiler/src/taglib/marko-html.json b/packages/compiler/src/taglib/marko-html.json index 399ad7b1b6..0c2e16a169 100644 --- a/packages/compiler/src/taglib/marko-html.json +++ b/packages/compiler/src/taglib/marko-html.json @@ -735,6 +735,10 @@ "html": true, "attribute-groups": ["html-attributes"] }, + "": { + "html": true, + "attribute-groups": ["html-attributes"] + }, "
": { "html": true, "attribute-groups": ["html-attributes"] @@ -756,6 +760,11 @@ ], "attribute-groups": ["html-attributes"] }, + "": { + "@name": "#html-name", + "html": true, + "attribute-groups": ["html-attributes"] + }, "": { "html": true, "attribute-groups": ["html-attributes"] diff --git a/packages/runtime-class/tags-html.d.ts b/packages/runtime-class/tags-html.d.ts index d8518bd49c..d2e2ce0aac 100644 --- a/packages/runtime-class/tags-html.d.ts +++ b/packages/runtime-class/tags-html.d.ts @@ -94,6 +94,7 @@ declare global { s: NativeTag; samp: NativeTag; script: NativeTag; + search: NativeTag; section: NativeTag; select: NativeTag; slot: NativeTag; @@ -1885,6 +1886,7 @@ declare global { language?: AttrString; } + interface Search extends HTMLAttributes {} interface Section extends HTMLAttributes {} interface Select extends HTMLAttributes { /** diff --git a/packages/runtime-class/test/taglib-lookup/fixtures/getTagsSorted/expected.json b/packages/runtime-class/test/taglib-lookup/fixtures/getTagsSorted/expected.json index 497b848f24..a27c25ea4b 100644 --- a/packages/runtime-class/test/taglib-lookup/fixtures/getTagsSorted/expected.json +++ b/packages/runtime-class/test/taglib-lookup/fixtures/getTagsSorted/expected.json @@ -210,11 +210,13 @@ "s", "samp", "script", + "search", "section", "select", "semantics", "server", "set", + "slot", "small", "source", "span", diff --git a/packages/runtime-tags/tags-html.d.ts b/packages/runtime-tags/tags-html.d.ts index 3278e1517f..113891661e 100644 --- a/packages/runtime-tags/tags-html.d.ts +++ b/packages/runtime-tags/tags-html.d.ts @@ -94,6 +94,7 @@ declare global { s: NativeTag; samp: NativeTag; script: NativeTag; + search: NativeTag; section: NativeTag; select: NativeTag; slot: NativeTag; @@ -1984,6 +1985,7 @@ declare global { language?: AttrString; } + interface Search extends HTMLAttributes {} interface Section extends HTMLAttributes {} interface Select extends HTMLAttributes { /**