From 10daac3988f73355da287c76add7ab3e436c277b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 10 Oct 2018 20:59:55 +0000 Subject: [PATCH] oops, checked in some non-working experimental code --- theme/puzzle.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/puzzle.html b/theme/puzzle.html index ed6a9e1..9bfec5e 100644 --- a/theme/puzzle.html +++ b/theme/puzzle.html @@ -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\""); }