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 9e6389f commit 2ce3194Copy full SHA for 2ce3194
Sources/SwiftHtml/Attributes/Global.swift
@@ -173,7 +173,8 @@ public extension Tag {
173
174
/// Specifies an inline CSS style for an element
175
func style(_ value: String) -> Self {
176
- attribute("style", value)
+ guard !value.isEmpty else { return self }
177
+ return attribute("style", value)
178
}
179
180
/// Specifies the tabbing order of an element
0 commit comments