Skip to content

Commit

Permalink
capricorn86#898@minor: Change deprecated shadowroot attribute to shad…
Browse files Browse the repository at this point in the history
…owrootmode.
  • Loading branch information
crypto-scythe committed May 7, 2023
1 parent c956dda commit 4d90214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/happy-dom/src/xml-serializer/XMLSerializer.ts
Expand Up @@ -40,7 +40,7 @@ export default class XMLSerializer {
}

if (options?.includeShadowRoots && element.shadowRoot) {
innerHTML += `<template shadowroot="${element.shadowRoot.mode}">`;
innerHTML += `<template shadowrootmode="${element.shadowRoot.mode}">`;

for (const node of element.shadowRoot.childNodes) {
innerHTML += this.serializeToString(node, options);
Expand Down
Expand Up @@ -157,7 +157,7 @@ describe('XMLSerializer', () => {
<div>
<custom-element key1="value1" key2="value2">
<span>Slotted content</span>
<template shadowroot="open">
<template shadowrootmode="open">
<style>
:host {
display: block;
Expand Down

0 comments on commit 4d90214

Please sign in to comment.