Re-implement functions on certain pages to use DOM dataset. #151

Closed
opened 2025-05-15 06:55:56 -04:00 by rainbownapkin · 4 comments
rainbownapkin commented 2025-05-15 06:55:56 -04:00 (Migrated from gitlab.com)

Some pages use html element's ID to hold data instead of 'data-xxx' attributes.

This is really gross and makes no sense, especially since querySelector(['data-xxx']) should work fine.

Find and fix any functions that do this (looking at you Admin Panel and Channel Settings Page)

Some pages use html element's ID to hold data instead of 'data-xxx' attributes. This is really gross and makes no sense, especially since querySelector(['data-xxx']) should work fine. Find and fix any functions that do this (looking at you Admin Panel and Channel Settings Page)
rainbownapkin commented 2025-05-15 06:55:56 -04:00 (Migrated from gitlab.com)

added #137 as parent issue

added #137 as parent issue
rainbownapkin commented 2025-05-15 06:57:29 -04:00 (Migrated from gitlab.com)

changed the description

changed the description
rainbownapkin commented 2025-09-07 09:46:00 -04:00 (Migrated from gitlab.com)

Re-implemented adminPanel.js to use DOM-dataset over ID Splicing: 3ab6c6c715

Re-implemented adminPanel.js to use DOM-dataset over ID Splicing: 3ab6c6c7152e874287b43240d932f28215e1d336
rainbownapkin (Migrated from gitlab.com) closed this issue 2025-09-08 07:35:57 -04:00
rainbownapkin commented 2025-09-08 07:35:58 -04:00 (Migrated from gitlab.com)

Re-implemented channel settings panel to use DOM-dataset over ID splicing: 92659929b9

Doesn't seem like any other big pages have this issue. If we see it going forward, it's at least pretty ezpz to correct.

Re-implemented channel settings panel to use DOM-dataset over ID splicing: 92659929b95178196bfcff8d1b759f0cb5f7b9c1 Doesn't seem like any other big pages have this issue. If we see it going forward, it's at least pretty ezpz to correct.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: rainbownapkin/canopy#151
No description provided.