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

21 lines
545 B
JavaScript

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