Page MenuHomeSealhub

Properly escape tabs id
Open, NormalPublic0.5 Points

Description

In https://hub.sealcode.org/source/sealious-playground/browse/master/src/back/routes/tabs-demo.page.tsx the IDs for the tabs are used as labels. But that can cause problems when the user wants labels to contain spaces. This task is about fixing that โ€” remove all characters from the id/label of the tag that cannot be a part of id in HTML and replace them with ascii replacements (https://www.npmjs.com/package/normalize-diacritics) for word characters and for non-word characters โ€” with hyphens

Details

Coded by
ziomek
Reviewed by
kuba-orlik
Action required from
ziomek

Revisions and Commits

Event Timeline

ziomek updated Coded by, added: ziomek.
ziomek moved this task from To do to Doing on the Kanban board.
ziomek added a revision: Restricted Differential Revision.Mon, Nov 3, 16:41
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: FilipI; removed: ziomek.
jenkins-user added a subscriber: ziomek.
jenkins-user moved this task from Review to Doing on the Kanban board.
jenkins-user updated Reviewed by, added: kuba-orlik.
jenkins-user updated Action required from, added: ziomek; removed: FilipI.