Skip to content

Commit

Permalink
Apply suggestions from code review - remove untrusted
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Warlow <luke@warlow.dev>
  • Loading branch information
hamishwillee and lukewarlow committed May 23, 2024
1 parent bc76c63 commit f3cc053
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/sethtmlunsafe/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The suffix "Unsafe" in the method name indicates that the method does not saniti

If the string of HTML defines more than one [declarative shadow root](/en-US/docs/Web/HTML/Element/template#declarative_shadow_dom) in a particular shadow host then only the first {{domxref("ShadowRoot")}} is created — subsequent declarations are parsed as `<template>` elements within that shadow root.

> **Note:** This method should be used instead of {{domxref("Element.innerHTML")}} when a string of untrusted HTML may contain declarative shadow roots.
> **Note:** This method should be used instead of {{domxref("Element.innerHTML")}} when a string of HTML may contain declarative shadow roots.
## Syntax

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/shadowroot/sethtmlunsafe/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The suffix "Unsafe" in the method name indicates that the method does not saniti

If the string of HTML defines more than one [declarative shadow root](/en-US/docs/Web/HTML/Element/template#declarative_shadow_dom) in a particular shadow host then only the first {{domxref("ShadowRoot")}} is created — subsequent declarations are parsed as `<template>` elements within that shadow root.

> **Note:** This method should be used instead of {{domxref("ShadowRoot.innerHTML")}} when a string of untrusted HTML may contain declarative shadow roots.
> **Note:** This method should be used instead of {{domxref("ShadowRoot.innerHTML")}} when a string of HTML may contain declarative shadow roots.
## Syntax

Expand Down

0 comments on commit f3cc053

Please sign in to comment.