Skip to content

Commit

Permalink
Simplifies grammar (mdn#17725)
Browse files Browse the repository at this point in the history
* Simplify grammar

* Simplify grammar

* Update files/en-us/web/web_components/using_shadow_dom/index.md

Co-authored-by: Jean-Yves Perrier <[email protected]>

Co-authored-by: Jean-Yves Perrier <[email protected]>
  • Loading branch information
devbynicole and teoli2003 authored Jun 28, 2022
1 parent 96918dc commit d819b74
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/htmlelement/nonce/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let nonce = script['nonce'] || script.getAttribute('nonce');

However, recent browsers version hide `nonce` values that are accessed this way (an empty string will be returned). The IDL property (`script['nonce']`) will be the only way to access nonces.

Nonce hiding helps preventing that attackers exfiltrate nonce data via mechanisms that can grab data from content attributes like this:
Nonce hiding helps prevent attackers from exfiltrating nonce data via mechanisms that can grab data from content attributes like this:

```css example-bad
script[nonce~=whatever] {
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/web_components/using_shadow_dom/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This fragment produces the following DOM structure:

![](dom-screenshot.png)

_Shadow_ DOM allows hidden DOM trees to be attached to elements in the regular DOM tree — this shadow DOM tree starts with a shadow root, underneath which can be attached to any elements you want, in the same way as the normal DOM.
_Shadow_ DOM allows hidden DOM trees to be attached to elements in the regular DOM tree — this shadow DOM tree starts with a shadow root, underneath which you can attach any element, in the same way as the normal DOM.

![SVG version of the diagram showing the interaction of document, shadow root and shadow host.](shadowdom.svg)

Expand Down

0 comments on commit d819b74

Please sign in to comment.