(children, tagName)
| 16 | * @returns {import("../lib/html/syntax").HtmlElement} the element |
| 17 | */ |
| 18 | const child = (children, tagName) => |
| 19 | /** @type {import("../lib/html/syntax").HtmlElement} */ ( |
| 20 | children.find((c) => c.type === NodeType.Element && c.tagName === tagName) |
| 21 | ); |
| 22 | |
| 23 | // The tree builder always produces a full document (html > head, body); these |
| 24 | // helpers reach the interesting subtrees. |
no outgoing calls
no test coverage detected