Skip to content

Commit

Permalink
fix: use standard shadowrootmode attribute
Browse files Browse the repository at this point in the history
Fixes failing Shadow DOM tests since the previous `shadowroot` attribute was deprecated in Chrome 112 and removed in 119
  • Loading branch information
colinrotherham committed Feb 9, 2024
1 parent 556be09 commit 83767c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/public/shadow.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
</head>
<body>
<host-element>
<template shadowroot="open">
<template shadowrootmode="open">
<header>This is home!</header>
<slot></slot>
</template>
<h2>Light DOM content (slotted)</h2>
</host-element>
<button id="dialog-btn" onclick="window.confirm('Bouh!')">
<host-element-2>
<template shadowroot="open">Open dialog</template>
<template shadowrootmode="open">Open dialog</template>
</host-element-2>
</button>
</body>
Expand Down

0 comments on commit 83767c5

Please sign in to comment.