Rocky_Mountain_Vending/.pnpm-store/v10/files/e7/7d8a8f8d42b517ec48f8afd5a810cc243dcf3eb312ec51b36b43661b1e8e4df89d9d1cc9994dad18f7493a1ab7a3d811d958eae513194ce1b2045d2f5f08f3
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

39 lines
No EOL
1.1 KiB
Text

/**
* @license
* Copyright 2022 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
import { createTextContent, isSuitableNodeForTextMatching, } from './TextContent.js';
/**
* Queries the given node for all nodes matching the given text selector.
*
* @internal
*/
export const textQuerySelectorAll = function* (root, selector) {
let yielded = false;
for (const node of root.childNodes) {
if (node instanceof Element && isSuitableNodeForTextMatching(node)) {
let matches;
if (!node.shadowRoot) {
matches = textQuerySelectorAll(node, selector);
}
else {
matches = textQuerySelectorAll(node.shadowRoot, selector);
}
for (const match of matches) {
yield match;
yielded = true;
}
}
}
if (yielded) {
return;
}
if (root instanceof Element && isSuitableNodeForTextMatching(root)) {
const textContent = createTextContent(root);
if (textContent.full.includes(selector)) {
yield root;
}
}
};
//# sourceMappingURL=TextQuerySelector.js.map