From 256f318fcef7a10621e19f76ff06860b0b9b8121 Mon Sep 17 00:00:00 2001 From: Daniel Walsh Date: Tue, 22 Apr 2025 19:36:03 +0100 Subject: [PATCH] Fix setInnerContent not rendering correctly --- src/content/docs/workers/runtime-apis/html-rewriter.mdx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/content/docs/workers/runtime-apis/html-rewriter.mdx b/src/content/docs/workers/runtime-apis/html-rewriter.mdx index ef30491151cb889..c701116c72be14b 100644 --- a/src/content/docs/workers/runtime-apis/html-rewriter.mdx +++ b/src/content/docs/workers/runtime-apis/html-rewriter.mdx @@ -183,10 +183,8 @@ The `element` argument, used only in element handlers, is a representation of a - Removes the element and inserts content in place of it. -- - setInnerContent(contentContent, contentOptionsContentOptionsoptional) - - : Element +- setInnerContent(contentContent, contentOptionsContentOptionsoptional) : + Element - Replaces content of the element. @@ -210,7 +208,7 @@ The `endTag` argument, used only in handlers registered with `element.onEndTag`, - `name` string - - The name of the tag, such as `"h1"` or `"div"`. This property can be assigned different values, to modify an element’s tag. + - The name of the tag, such as `"h1"` or `"div"`. This property can be assigned different values, to modify an element's tag. #### Methods