LibWeb: Return empty string if object element data URL is invalid

This commit is contained in:
Tim Ledbetter 2024-08-15 00:08:54 +01:00 committed by Andreas Kling
parent 4f7a4d9c57
commit c61262684b
Notes: github-actions[bot] 2024-08-15 07:45:28 +00:00
3 changed files with 7 additions and 2 deletions

View file

@ -4,6 +4,7 @@
test(() => {
const elementList = [
{ "img": "currentSrc" },
{ "object": "data" },
];
for (const elementDescriptor of elementList) {
[elementName, propertyName] = Object.entries(elementDescriptor)[0];