Update DOM manipulation constructor docs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

I don't think our DOM manipulation docs promote the best guideline to referencing elements in classes. We should discuss a review approach?

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/fe_guide/design_patterns.md#manipulating-the-dom-in-a-js-class

The docs itself actually links to an example that doesn't do what it is claiming we should do and does it in a better way.

Draft MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11416

Edited Sep 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading