This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/linkedom/esm/interface/shadow-root.js
T

21 lines
540 B
JavaScript

import {DOCUMENT_FRAGMENT_NODE} from '../shared/constants.js';
import {getInnerHtml, setInnerHtml} from '../mixin/inner-html.js';
import {NonElementParentNode} from '../mixin/non-element-parent-node.js';
/**
* @implements globalThis.ShadowRoot
*/
export class ShadowRoot extends NonElementParentNode {
constructor(host) {
super(host.ownerDocument, '#shadow-root', DOCUMENT_FRAGMENT_NODE);
this.host = host;
}
get innerHTML() {
return getInnerHtml(this);
}
set innerHTML(html) {
setInnerHtml(this, html);
}
}