Skip to content

Commit 99ab0f7

Browse files
authored
Fix setInnerContent not rendering correctly (#21906)
1 parent 793d9d7 commit 99ab0f7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/content/docs/workers/runtime-apis/html-rewriter.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,8 @@ The `element` argument, used only in element handlers, is a representation of a
183183

184184
- Removes the element and inserts content in place of it.
185185

186-
- <code>
187-
setInnerContent(contentContent, contentOptionsContentOptionsoptional)
188-
</code>
189-
: Element
186+
- <code>setInnerContent(contentContent, contentOptionsContentOptionsoptional)</code> :
187+
Element
190188

191189
- Replaces content of the element.
192190

@@ -210,7 +208,7 @@ The `endTag` argument, used only in handlers registered with `element.onEndTag`,
210208

211209
- `name` string
212210

213-
- The name of the tag, such as `"h1"` or `"div"`. This property can be assigned different values, to modify an elements tag.
211+
- The name of the tag, such as `"h1"` or `"div"`. This property can be assigned different values, to modify an element's tag.
214212

215213
#### Methods
216214

0 commit comments

Comments
 (0)