Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/content/docs/workers/runtime-apis/html-rewriter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

- <code>
setInnerContent(contentContent, contentOptionsContentOptionsoptional)
</code>
: Element
- <code>setInnerContent(contentContent, contentOptionsContentOptionsoptional)</code> :
Element

- Replaces content of the element.

Expand All @@ -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 elements 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

Expand Down