mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb/SVG: Process script element when its text content changes
This commit is contained in:
committed by
Jelle Raaijmakers
parent
db7aa68340
commit
a187d5f28f
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<div id="script-container"></div>
|
||||
<script>
|
||||
let scriptRan = false;
|
||||
test(() => {
|
||||
let script = document.createElementNS("http://www.w3.org/2000/svg", "script");
|
||||
script.textContent = `scriptRan = true;`;
|
||||
document.getElementById('script-container').appendChild(script);
|
||||
println(`SVG script ran: ${scriptRan}`);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user