From 97c5b5fb494f0a972c7fe420165024a93bef4495 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Wed, 27 Aug 2025 17:17:37 +0300 Subject: [PATCH] Correctly identify MSC4286 span values. --- .../Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift b/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift index 6277b932c..8c70bc027 100644 --- a/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift +++ b/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift @@ -182,7 +182,7 @@ struct AttributedStringBuilderV2: AttributedStringBuilderProtocol { } case "span": - if (try? childElement.attr(Self.attributeMSC4286)) ?? nil != nil { + if childElement.dataset()[Self.attributeMSC4286] != nil { content = attributedString(from: childElement, preserveFormatting: preserveFormatting, listTag: listTag, listIndex: &childIndex, indentLevel: indentLevel) }