ie11 can't sandbox; add minimal fallback

This commit is contained in:
ed 2025-04-26 20:14:23 +00:00
parent 3090c74832
commit 95157d02c9

View file

@ -9637,6 +9637,11 @@ function sandbox(tgt, rules, allow, cls, html) {
clmod(tgt, 'sb'); clmod(tgt, 'sb');
return false; return false;
} }
if (!CLOSEST) {
tgt.textContent = html;
clmod(tgt, 'sb');
return false;
}
clmod(tgt, 'sb', 1); clmod(tgt, 'sb', 1);
var tid = tgt.getAttribute('id'), var tid = tgt.getAttribute('id'),