Skip to content

Commit

Permalink
Add declarative shadow DOM to Firefox 123 release notes (#32128)
Browse files Browse the repository at this point in the history
* Add declarative shadow DOM to Fx 123

* Remove declarative shadow DOM from experimental features

* Update files/en-us/mozilla/firefox/releases/123/index.md

Co-authored-by: Hamish Willee <[email protected]>

---------

Co-authored-by: Hamish Willee <[email protected]>
  • Loading branch information
pepelsbey and hamishwillee authored Feb 6, 2024
1 parent 8fe5517 commit a320ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
40 changes: 0 additions & 40 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,46 +99,6 @@ HTML password input elements ([`<input type="password">`](/en-US/docs/Web/HTML/E
</tbody>
</table>

### Declarative shadow DOM

The {{htmlelement("template")}} element now supports a `shadowrootmode` attribute which can be set to either `open` or `closed`, the same values as the `mode` option of the {{domxref("Element.attachShadow()", "attachShadow()")}} method. It allows the creation of a shadow DOM subtree declaratively. (See [Firefox bug 1712140](https://bugzil.la/1712140) for more details.)

<table>
<thead>
<tr>
<th>Release channel</th>
<th>Version added</th>
<th>Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th>Nightly</th>
<td>122</td>
<td>Yes</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>122</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>122</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>122</td>
<td>No</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>dom.webcomponents.shadowdom.declarative.enabled</code></td>
</tr>
</tbody>
</table>

## CSS

### Hex boxes to display stray control characters
Expand Down
2 changes: 2 additions & 0 deletions files/en-us/mozilla/firefox/releases/123/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ This article provides information about the changes in Firefox 123 that affect d

### HTML

- The {{htmlelement("template")}} element now supports a `shadowrootmode` attribute that allows declarative creation of a shadow DOM subtree. The attribute can be set to either `open` or `closed`, which expose or hide JavaScript in the shadow DOM from external code, respectively. These are the same values as the `mode` option of the {{domxref("Element.attachShadow()", "attachShadow()")}} method. ([Firefox bug 1712140](https://bugzil.la/1870052))

#### Removals

### CSS
Expand Down

0 comments on commit a320ca3

Please sign in to comment.