@@ -3984,7 +3984,7 @@ public struct HeaderCell: ContentNode, TableElement {
39843984 }
39853985}
39863986
3987- extension HeaderCell : GlobalAttributes , GlobalEventAttributes , GlobalAccessibilityAttributes , ColumnSpanAttribute , RowSpanAttribute , HeadersAttribute , ScopeAttribute , ColumnIndexAccessibilityAttribute {
3987+ extension HeaderCell : GlobalAttributes , GlobalEventAttributes , GlobalAccessibilityAttributes , ColumnSpanAttribute , RowSpanAttribute , HeadersAttribute , ScopeAttribute , ColumnIndexAccessibilityAttribute , AbbreviatedAttribute {
39883988
39893989 public func accessKey( _ value: Character ) -> HeaderCell {
39903990 return mutate ( accesskey: . init( " \( value) " , context: . trusted) )
@@ -4191,6 +4191,19 @@ extension HeaderCell: GlobalAttributes, GlobalEventAttributes, GlobalAccessibili
41914191 return mutate ( popover: . init( value. rawValue, context: . trusted) )
41924192 }
41934193
4194+ @_disfavoredOverload
4195+ public func abbreviated( _ value: String ) -> HeaderCell {
4196+ return mutate ( abbr: . init( value, context: . tainted( . html) ) )
4197+ }
4198+
4199+ public func abbreviated( _ localizedKey: LocalizedStringKey , tableName: String ? = nil ) -> HeaderCell {
4200+ return mutate ( abbr: . init( LocalizedString ( key: localizedKey, table: tableName) , context: . tainted( . html) ) )
4201+ }
4202+
4203+ public func abbreviated( verbatim value: String ) -> HeaderCell {
4204+ return mutate ( abbr: . init( value, context: . tainted( . html) ) )
4205+ }
4206+
41944207 public func custom( key: String , value: String , context: EscapeContext = . tainted( . html) ) -> HeaderCell {
41954208 return mutate ( key: key, value: . init( value, context: context) )
41964209 }
0 commit comments