/**
 * Gets the composed text content of an element via the Selection API
 * WARNING: this is not reliable, should be improved with a treewalker
 */
export function getComposedText(node) {
    const range = new Range();
    range.selectNodeContents(node);
    return range.toString();
}
//# sourceMappingURL=get-composed-text.js.map