We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c9b8f commit 8dd0784Copy full SHA for 8dd0784
Sources/SwiftHtml/Tags/Img.swift
@@ -23,7 +23,7 @@ open class Img: Tag {
23
public init(src: String, alt: String) {
24
let node = Node(type: .empty, name: "img", attributes: [
25
Attribute(key: "src", value: src),
26
- Attribute(key: "alt", value: src),
+ Attribute(key: "alt", value: alt),
27
])
28
super.init(node)
29
}
0 commit comments