diff --git a/client/public/runner.html b/client/public/runner.html
index 6b534bdc60f1..d3374bb6a622 100644
--- a/client/public/runner.html
+++ b/client/public/runner.html
@@ -62,10 +62,14 @@
parent.innerHTML = html;
} else {
for (const child of dummy.childNodes) {
- if (child.nodeType == Node.TEXT_NODE) {
+ if (child.nodeType === Node.TEXT_NODE) {
parent.appendChild(document.createTextNode(child.textContent));
continue;
}
+ if (child.nodeType === Node.COMMENT_NODE) {
+ parent.appendChild(document.createComment(child.data));
+ continue;
+ }
if (child.nodeType !== Node.ELEMENT_NODE) {
continue;
}