(el)
| 675 | } |
| 676 | |
| 677 | export function trimTextNodes(el) { |
| 678 | for (let node of el.childNodes) { |
| 679 | if (node.nodeType === Node.TEXT_NODE) { |
| 680 | node.data = node.data.trim(); |
| 681 | } |
| 682 | } |
| 683 | } |
| 684 | |
| 685 | export function getElementsByTagNameRecursive(parent, tag) { |
| 686 | const tagLower = tag.toLowerCase(); |