mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibWeb: Add IDL definition for SVGScriptElement
It does not currently handle any of the actual scripting, but this should at least allow us to create an instance of the element. The test being added here isn't actually testing much, but before the previous commit we used to crash parsing the page due to a TODO().
This commit is contained in:
committed by
Andreas Kling
parent
60c32f39a1
commit
07b332e17c
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/07b332e17c Pull-request: https://github.com/SerenityOS/serenity/pull/21197
7
Tests/LibWeb/Text/input/SVG/svg-script-element.html
Normal file
7
Tests/LibWeb/Text/input/SVG/svg-script-element.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<script src="../include.js"></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"><script id="svg-script-element"></script></svg>
|
||||
<script>
|
||||
test(() => {
|
||||
println(`Name = ${document.getElementById('svg-script-element').constructor.name}`);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user