Updated the event tagging for the AnalyticsEvent+Tagging extension in the Infrastructure package to support attribute-capable tags.

This commit is contained in:
2026-09-04 14:57:29 +02:00
parent a9a62e10df
commit a71edd37ab
3 changed files with 13 additions and 2 deletions
@@ -12,7 +12,7 @@ public extension Analytics.Event {
/// ```
///
/// - Returns: one HTML attribute per event attribute, applied verbatim.
func tagging<Tag: HTMLTrait.Attributes.Global>() -> [HTMLAttribute<Tag>] {
func tagging<Tag: MarkupTagDefinition & MarkupTrait.AllowsAttributes>() -> [HTMLAttribute<Tag>] {
attributes.map {
.custom(
name: $0.name,