Merge branch 'fixes' into 2026.4-test

This commit is contained in:
yflory 2026-05-04 13:21:54 +02:00
commit 007fb6e286

View File

@ -575,7 +575,7 @@ var factory = function (Util) {
var copyAttributes = function (origin, dest) {
Object.keys(origin.attributes).forEach(function (i) {
if (!/^data-attr/.test(origin.attributes[i].name)) { return; }
var name = origin.attributes[i].name.slice(10);
var name = origin.attributes[i].name.slice(10).toLowerCase();
// Ignore attributes filtered out by the sanitizer
if (name === "src") { return; }
if (name === "srcdoc") { return; }