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