/
Dante
/
node-core
Обзор
Документация
Войти
/
Dante
/
node-core
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/node-html-parser/dist/nodes/text.d.ts
44 строки
1 KB
Александр Данилюк
add
24 сен 2024, 12:59
24 сен 2024, 12:59
9eaeea8
Код
Авторство
О чём код?
import HTMLElement from './html'; import Node from './node'; import NodeType from './type'; /** * TextNode to contain a text element in DOM tree. * @param {string} value [description] */ export default class TextNode extends Node { clone(): TextNode; constructor(rawText: string, parentNode?: HTMLElement, range?: [number, number]); /** * Node Type declaration. * @type {Number} */ nodeType: NodeType; rawTagName: string; private _rawText; private _trimmedRawText?; private _trimmedText?; get rawText(): string; /** * Set rawText and invalidate trimmed caches */ set rawText(text: string); /** * Returns raw text with all whitespace trimmed except single leading/trailing non-breaking space */ get trimmedRawText(): string; /** * Returns text with all whitespace trimmed except single leading/trailing non-breaking space */ get trimmedText(): string; /** * Get unescaped text value of current node and its children. * @return {string} text content */ get text(): string; /** * Detect if the node contains only white space. * @return {boolean} */ get isWhitespace(): boolean; toString(): string; }