(el, attr)
| 999 | // replace hrefs (excluding anchors) |
| 1000 | // TODO: srcset? |
| 1001 | const replace = async (el, attr) => |
| 1002 | el.setAttribute(attr, await this.loadHref(el.getAttribute(attr), href, parents)); |
| 1003 | for (const el of doc.querySelectorAll("link[href]")) await replace(el, "href"); |
| 1004 | for (const el of doc.querySelectorAll("[src]")) await replace(el, "src"); |
| 1005 | for (const el of doc.querySelectorAll("[poster]")) await replace(el, "poster"); |