Skip to content

Commit

Permalink
hint->indication
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Sep 29, 2023
1 parent 6858e23 commit 11f9d4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ This time, the JavaScript running in the page can access the shadow DOM internal

So `{mode: "open"}` gives the page a way to break the encapsulation of your shadow DOM. If you don't want to give the page this ability, pass `{mode: "closed"}` instead, and then `shadowRoot` returns `null`.

However, you should not consider this a strong security mechanism, because there are ways it can be evaded, for example by browser extensions running in the page. It's more of a hint that the page should not access the internals of your shadow DOM tree.
However, you should not consider this a strong security mechanism, because there are ways it can be evaded, for example by browser extensions running in the page. It's more of an indication that the page should not access the internals of your shadow DOM tree.

## Encapsulation from CSS

Expand Down

0 comments on commit 11f9d4c

Please sign in to comment.