Skip to content
Open
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
Replace __proto__ with prototype in attach-shadow.js
  • Loading branch information
iegik authored Mar 1, 2024
commit f40e75349417a37498267a955f95b743dc4ae2ba
2 changes: 1 addition & 1 deletion packages/shadydom/src/attach-shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ export const attachShadow = (host, options) => {
// creating one.
if (options['shadyUpgradeFragment'] && utils.canUpgrade()) {
root = options['shadyUpgradeFragment'];
root.__proto__ = ShadowRoot.prototype;
root.prototype = ShadowRoot.prototype;
root._init(host, options);
recordChildNodes(root, root);
// Note: qsa is native when used with noPatch.
Expand Down