Review main Ready for review

98277[BUGFIX] Avoid CSS-unsafe flex form sheet names in section DOM ids

Himanshu Nitsan CR 0 V 0 Easy +24 −5 updated 12/02/26, 10:09

Commit message

Bootstrap Collapse reads data-bs-target as a CSS selector. The flex
form section container ids are built from the raw sheet name, so a
sheet key containing a dot (e.g. <sheet.tab1>, as generated by DCE)
is read as a class separator and the section header never toggles.

Hash the sheet name when assembling the section container, section
and parent section container ids, the same way the flex form field
name and element base name are handled. The DOM id is not persisted,
so no data migration is needed.

The styleguide flex_2 fixture gets a dotted sheet key and a
playwright test verifies that the section expands.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/77/98277/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/77/98277/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Merge conflicts 6

Issues 2

Files 4

Review log 12

  1. Himanshu Nitsan uploaded patch set 1 12/02/26, 10:02

  2. core-ci voted on patch set 1 V +1 12/02/26, 10:09 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116166