Skip to content

fix: sanitize room item IDs to ensure valid HTML - MEED-10200 - Meeds-io/meeds#4028#488

Merged
hakermi merged 1 commit intofeature/maintenancefrom
TASK-10200
Feb 13, 2026
Merged

fix: sanitize room item IDs to ensure valid HTML - MEED-10200 - Meeds-io/meeds#4028#488
hakermi merged 1 commit intofeature/maintenancefrom
TASK-10200

Conversation

@hakermi
Copy link
Member

@hakermi hakermi commented Feb 9, 2026

prior to this change, the roomItemTagId() function could generate invalid HTML IDs if spaceId or dmMemberId contained characters like '@', spaces, or other special symbols. This caused issues when using these IDs in the DOM.
This PR replaces all invalid HTML ID characters with underscores (_), to ensure valid HTML tag ID.

@hakermi hakermi requested review from ahamdi and rdenarie February 9, 2026 10:48
@exo-swf exo-swf force-pushed the feature/maintenance branch 2 times, most recently from 02272c9 to f348c86 Compare February 11, 2026 00:21
…-io/meeds#4028

prior to this change, the `roomItemTagId()` function could generate invalid HTML IDs if `spaceId` or `dmMemberId` contained characters like '@', spaces, or other special symbols.
This caused issues when using these IDs in the DOM.
This PR replaces all invalid HTML ID characters with underscores (`_`), to ensure valid HTML tag ID.
@sonarqubecloud
Copy link

@hakermi hakermi merged commit 580134b into feature/maintenance Feb 13, 2026
6 checks passed
@hakermi hakermi deleted the TASK-10200 branch February 13, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants