From c8a5a7c409efd8570e77bd28a66352eb9e519a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Schmitz?= Date: Tue, 4 Jun 2024 10:05:59 -0300 Subject: [PATCH] fix: add closing tag for iframe (#127) * fix: add closing tag for iframe * chore: adjust test and add changeset --- .changeset/beige-otters-sparkle.md | 5 +++++ packages/html-renderer/src/elements/IFrame.tsx | 2 +- packages/html-renderer/test/index.test.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/beige-otters-sparkle.md diff --git a/.changeset/beige-otters-sparkle.md b/.changeset/beige-otters-sparkle.md new file mode 100644 index 0000000..808e51f --- /dev/null +++ b/.changeset/beige-otters-sparkle.md @@ -0,0 +1,5 @@ +--- +'@graphcms/rich-text-html-renderer': patch +--- + +fix: add closing tag for iframe diff --git a/packages/html-renderer/src/elements/IFrame.tsx b/packages/html-renderer/src/elements/IFrame.tsx index 846cce5..ed94fd1 100644 --- a/packages/html-renderer/src/elements/IFrame.tsx +++ b/packages/html-renderer/src/elements/IFrame.tsx @@ -26,7 +26,7 @@ export function IFrame({ url }: Partial) { allow="fullscreen" frameBorder="0" referrerPolicy="no-referrer" - /> + > `; } diff --git a/packages/html-renderer/test/index.test.ts b/packages/html-renderer/test/index.test.ts index b112057..f94ff9e 100644 --- a/packages/html-renderer/test/index.test.ts +++ b/packages/html-renderer/test/index.test.ts @@ -181,7 +181,7 @@ describe('@graphcms/rich-text-html-renderer', () => { allow="fullscreen" frameBorder="0" referrerPolicy="no-referrer" - /> + > `); });