Issue #1543 - Align <img> with no src to the updated spec.

This commit is contained in:
Moonchild 2020-05-11 23:17:47 +00:00 committed by Roy Tam
commit db14a637c4
25 changed files with 124 additions and 85 deletions

View file

@ -51,7 +51,6 @@
// code.
var finalImg = document.getElementById('image1');
finalImg.alt = "";
finalImg.onload = finalImg.onerror = step3;
finalImg.src = gImg.src;
}
@ -68,7 +67,8 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
gImg = document.createElement('img');