mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Previously, the invalid value default wasn't taken into account when determining the value that should be returned from the getter of an enumerated attribute. This caused a crash when an enumerated attribute of type DOMString? was set to an invalid value.
16 lines
469 B
HTML
16 lines
469 B
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>
|