Skip to content
Open
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
4 changes: 1 addition & 3 deletions src/content/docs/workers/runtime-apis/html-rewriter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ The `element` argument, used only in element handlers, is a representation of a
Element
- Removes the element and inserts content in place of it.

- <code>
setInnerContent(contentContent, contentOptionsContentOptionsoptional)
</code>
- `setInnerContent(contentContent, contentOptionsContentOptionsoptional)`
Copy link

Copilot AI Nov 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter names appear to have duplicated words. 'contentContent' should likely be 'content' and 'contentOptionsContentOptionsoptional' should likely be 'contentOptions' (optional).

Copilot uses AI. Check for mistakes.
: Element
- Replaces content of the element.

Expand Down