1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 00:52:12 +00:00

Tests: Add test for button type attribute

This commit is contained in:
stelar7 2023-11-06 16:43:45 +01:00 committed by Andreas Kling
parent 5dfe21be85
commit 2bab266ba9
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<script src="../include.js"></script>
<script>
test(() => {
var button = document.createElement('button');
println(button.type);
button.setAttribute("type", "button");
println(button.type);
button.removeAttribute("type");
println(button.type);
});
</script>