From 9c23a9872697348b4568127e6657601943814c67 Mon Sep 17 00:00:00 2001 From: Tariq Hussein Date: Wed, 19 May 2021 01:35:08 +0100 Subject: [PATCH] COM-739 Temporarily removes fix --- src/render.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/render.js b/src/render.js index c8cf7b0cf..5ed3afce2 100644 --- a/src/render.js +++ b/src/render.js @@ -110,24 +110,6 @@ function preview(text, target) var resultFragment = xslt.transformToFragment(parse(text).replace(/<[eis]>[^<]*<\/[eis]>/g, ''), targetDoc), lastUpdated = target; - // https://bugs.chromium.org/p/chromium/issues/detail?id=266305 - if (typeof window !== 'undefined' && 'chrome' in window) - { - resultFragment.querySelectorAll('script').forEach( - function (oldScript) - { - var newScript = document.createElement('script'); - for (var attribute of oldScript['attributes']) - { - newScript['setAttribute'](attribute.name, attribute.value); - } - newScript.textContent = oldScript.textContent; - - oldScript.parentNode.replaceChild(newScript, oldScript); - } - ); - } - // Compute and refresh hashes if (HINT.hash) {