matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
170 stars 90 forks source link

Ensure more uniqueness for generated HTML IDs #1881

Closed zecakeh closed 1 week ago

zecakeh commented 1 week ago

Given that the IDs are not "uniquified" with JavaScript anymore, we need to make sure the generated IDs are unique.

This solves most cases of duplicate IDs, except for the duplicate endpoints POST /_matrix/client/v3/rooms/{roomId}/invite and GET /_matrix/client/v3/events which will probably need a new solution.

See each commit's message for details.

Pull Request Checklist

Preview: https://pr1881--matrix-spec-previews.netlify.app