oops, checked in some non-working experimental code

This commit is contained in:
Neale Pickett 2018-10-10 20:59:55 +00:00
parent 2f2fd51607
commit 10daac3988
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ function init() {
// Prefix `base` to relative URLs in the puzzle body
let doc = new DOMParser().parseFromString(obj.body, "text/html");
for (let se of doc.querySelectorAll("[src,href]")) {
for (let se of doc.querySelectorAll("[src],[href]")) {
se.outerHTML = se.outerHTML.replace(/(src|href)="([^/]+)"/i, "$1=\"" + base + "$2\"");
}