mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 23:52:08 +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.
15 lines
469 B
HTML
15 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>
|