Files
ladybird/Tests/LibWeb/Layout/input/input-image-to-text.html
Timothy Flynn 5d5b69578f LibWeb: Handle <input> element type changing to the image button state
The spec has special steps specific to the image button state to load
the element's image URL.
2024-04-04 21:06:45 +02:00

8 lines
268 B
HTML

<input type="image" src="120.png" value="120.png" width="120" height="120" />
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", () => {
let input = document.querySelector("input");
input.type = "text";
});
</script>