Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/input-type-change-from-image-1.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel=match href="input-type-change-from-image-1-ref.html">
<input type="image" align="right">
<script>
onload = function() {
var i = document.querySelector("input");
window.rect = i.getBoundingClientRect();
i.type = "text";
}
</script>