ladybird/Tests/LibWeb/Text/input/HTML/button-attributes.html
2025-03-20 11:50:49 +01:00

16 lines
485 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
var button = document.createElement('button');
println(button.type);
button.setAttribute("type", "button");
println(button.type);
button.setAttribute("type", "BUTTON");
println(button.type);
button.setAttribute("type", "invalid");
println(button.type);
button.removeAttribute("type");
println(button.type);
});
</script>