Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit c1e46c6

Browse files
committed
fix attributes
1 parent f759156 commit c1e46c6

File tree

75 files changed

+646
-669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+646
-669
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
public struct ActionAttribute: HTMLAttribute {
2+
public var value: String?
3+
4+
public init(
5+
_ value: String? = nil
6+
) {
7+
self.value = value
8+
}
9+
}
10+
11+
public protocol ActionAttributeModifier {
12+
13+
}
14+
15+
extension ActionAttributeModifier where Self: Attributes & Mutable {
16+
17+
public func action(
18+
_ value: String?
19+
) -> Self {
20+
setAttribute(ActionAttribute(value))
21+
}
22+
}
File renamed without changes.

Sources/SwiftHTML/Attributes/_Final/AutoplayAttribute.swift renamed to Sources/SwiftHTML/Attributes/AutoplayAttribute.swift

File renamed without changes.
File renamed without changes.
File renamed without changes.

Sources/SwiftHTML/Attributes/_Final/ClosedbyAttribute.swift renamed to Sources/SwiftHTML/Attributes/ClosedbyAttribute.swift

File renamed without changes.

Sources/SwiftHTML/Attributes/_Final/ControlsAttribute.swift renamed to Sources/SwiftHTML/Attributes/ControlsAttribute.swift

File renamed without changes.

Sources/SwiftHTML/Attributes/_Final/CrossoriginAttribute.swift renamed to Sources/SwiftHTML/Attributes/CrossoriginAttribute.swift

File renamed without changes.

Sources/SwiftHTML/Attributes/_Final/DatetimeAttribute.swift renamed to Sources/SwiftHTML/Attributes/DatetimeAttribute.swift

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)