Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed shadow roots can be serializable too #10260

Merged
merged 2 commits into from
Apr 10, 2024
Merged
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
8 changes: 3 additions & 5 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -112659,7 +112659,7 @@ enum <dfn enum>DOMParserSupportedType</dfn> {
<p>Returns the result of serializing <var>element</var> to HTML. <span data-x="shadow root">Shadow roots</span> within <var>element</var> are serialized according to the provided options:</p>

<ul>
<li><p>If <code data-x="dom-GetHTMLOptions-serializableShadowRoots">serializableShadowRoots</code> is true, then all open shadow roots marked as <span data-x="shadow-serializable">serializable</span> are serialized.</p></li>
<li><p>If <code data-x="dom-GetHTMLOptions-serializableShadowRoots">serializableShadowRoots</code> is true, then all shadow roots marked as <span data-x="shadow-serializable">serializable</span> are serialized.</p></li>

<li><p>If the <code data-x="dom-GetHTMLOptions-shadowRoots">shadowRoots</code> array is provided, then all shadow roots specified in the array are serialized, regardless of whether or not they are marked as serializable.</p></li>
</ul>
Expand Down Expand Up @@ -131239,10 +131239,8 @@ document.body.appendChild(text);
<p>If one of the following is true:</p>

<ul>
<li><p><var>serializableShadowRoots</var> is true, <var>shadow</var>'s
<span data-x="shadow-serializable">serializable</span> is true, and <var>shadow</var>'s
<span data-x="concept-shadow-root-mode">mode</span> is "<code data-x="">open</code>";
or</p></li>
<li><p><var>serializableShadowRoots</var> is true and <var>shadow</var>'s
<span data-x="shadow-serializable">serializable</span> is true; or</p></li>

<li><p><var>shadowRoots</var> contains <var>shadow</var>,</p></li>
</ul>
Expand Down
Loading