Skip to content

Commit 040544d

Browse files
Fix factory to also accept correct 'kbd' tag name alongside existing 'kdb' typo
Agent-Logs-Url: https://github.com/webexpress-framework/WebExpress.WebCore/sessions/7e93c55c-79fd-4d3c-ac96-9948c1ec6d5a Co-authored-by: ReneSchwarzer <31061438+ReneSchwarzer@users.noreply.github.com>
1 parent 5438134 commit 040544d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/WebExpress.WebCore/WebHtml/Parser/HtmlElementFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public class HtmlElementFactory
7878
["em"] = () => new HtmlElementTextSemanticsEm(),
7979
["i"] = () => new HtmlElementTextSemanticsI(),
8080
["kdb"] = () => new HtmlElementTextSemanticsKdb(),
81+
// 'kbd' is the correct HTML tag name; 'kdb' mirrors the existing class typo.
82+
["kbd"] = () => new HtmlElementTextSemanticsKdb(),
8183
["mark"] = () => new HtmlElementTextSemanticsMark(),
8284
["q"] = () => new HtmlElementTextSemanticsQ(),
8385
["rp"] = () => new HtmlElementTextSemanticsRp(),

0 commit comments

Comments
 (0)