Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: allow <p> inside of <hgroup> (#5338)
Bogdan Chadkinac6b64939745
diff --git a/packages/html-data/bin/elements.ts b/packages/html-data/bin/elements.tsindex 65749dc394..46f10e27d8 100644--- a/packages/html-data/bin/elements.ts+++ b/packages/html-data/bin/elements.ts@@ -76,6 +76,12 @@ const elementsByTag: Record<string, Element> = {};if (tag === "summary") {categories.push("interactive");}+ // hgroup also accepts paragraphs+ // https://html.spec.whatwg.org/multipage/sections.html#the-hgroup-element+ // https://github.com/whatwg/html/pull/11524+ if (tag === "hgroup") {+ children.push("p");+ }elementsByTag[tag] = {description,categories,diff --git a/packages/html-data/src/__generated__/elements.ts b/packages/html-data/src/__generated__/elements.tsindex 5e828dbe31..71b420a1cd 100644--- a/packages/html-data/src/__generated__/elements.ts+++ b/packages/html-data/src/__generated__/elements.ts@@ -273,6 +273,7 @@ export const elementsByTag: Record<string, Element> = {"h5","h6","script-supporting elements",+ "p",],},hr: {