Properly remove crossorigin attribute
This commit is contained in:
Justin Halsall
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 99e158bd39
commit 3141043e8a

View File

@@ -582,7 +582,7 @@ function serializeNode(
}
oldValue
? (attributes.crossOrigin = oldValue)
: delete attributes.crossOrigin;
: image.removeAttribute('crossorigin');
};
// The image content may not have finished loading yet.
if (image.complete && image.naturalWidth !== 0) recordInlineImage();