Skip to content

Commit

Permalink
Don't emit empty alt tag if image description is empty.
Browse files Browse the repository at this point in the history
An empty but present alt attribute indicates to browsers that the
image is not a key part of the content.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img

Closes #718.
  • Loading branch information
jgm committed Aug 13, 2022
1 parent 3e26d56 commit 48ba840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8603,7 +8603,7 @@ My ![foo bar](/path/to/train.jpg "title" )
```````````````````````````````` example
![](/url)
.
<p><img src="/url" alt="" /></p>
<p><img src="/url" /></p>
````````````````````````````````


Expand Down

0 comments on commit 48ba840

Please sign in to comment.