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/html/text-area-element.js
T

37 lines
1.1 KiB
JavaScript

import {registerHTMLClass} from '../shared/register-html-class.js';
import {booleanAttribute} from '../shared/attributes.js';
import {TextElement} from './text-element.js';
const tagName = 'textarea';
/**
* @implements globalThis.HTMLTextAreaElement
*/
class HTMLTextAreaElement extends TextElement {
constructor(ownerDocument, localName = tagName) {
super(ownerDocument, localName);
}
/* c8 ignore start */
get disabled() { return booleanAttribute.get(this, 'disabled'); }
set disabled(value) { booleanAttribute.set(this, 'disabled', value); }
get name() { return this.getAttribute('name'); }
set name(value) { this.setAttribute('name', value); }
get placeholder() { return this.getAttribute('placeholder'); }
set placeholder(value) { this.setAttribute('placeholder', value); }
get type() { return this.getAttribute('type'); }
set type(value) { this.setAttribute('type', value); }
get value() { return this.textContent; }
set value(content) { this.textContent = content; }
/* c8 ignore stop */
}
registerHTMLClass(tagName, HTMLTextAreaElement);
export {HTMLTextAreaElement};