diff --git a/web_src/js/index.js b/web_src/js/index.js index f3f25c03a..ac492c36a 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -3967,7 +3967,7 @@ function initVueDataset() { }, methods: { copyUrl(url) { - const cInput = document.createElement('input') + const cInput = document.createElementNS('input') cInput.value = url document.body.appendChild(cInput) cInput.select() @@ -4915,7 +4915,7 @@ window.onOAuthLoginClick = function () { // Pull SVGs via AJAX to workaround CORS issues with tags // https://css-tricks.com/ajaxing-svg-sprite/ $.get(`${window.config.StaticUrlPrefix}/img/svg/icons.svg`, (data) => { - const div = document.createElement('div'); + const div = document.createElementNS('div'); div.style.display = 'none'; div.innerHTML = new XMLSerializer().serializeToString(data.documentElement); document.body.insertBefore(div, document.body.childNodes[0]);