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/comment.js
T

21 lines
508 B
JavaScript

import {COMMENT_NODE} from '../shared/constants.js';
import {VALUE} from '../shared/symbols.js';
import {CharacterData} from './character-data.js';
/**
* @implements globalThis.Comment
*/
export class Comment extends CharacterData {
constructor(ownerDocument, data = '') {
super(ownerDocument, '#comment', COMMENT_NODE, data);
}
cloneNode() {
const {ownerDocument, [VALUE]: data} = this;
return new Comment(ownerDocument, data);
}
toString() { return `<!--${this[VALUE]}-->`; }
}