Properly remove crossorigin attribute
This commit is contained in:
Justin Halsall
2022-05-31 10:15:48 +02:00
committed by GitHub
parent 1355917e1b
commit 9da1e432cc

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();