Remove no needed NodeList item counting and for loop after querySelectorAll()

Created on 24 June 2025, 22 days ago

Problem/Motivation

A querySelectorAll() method returns NodeList value and which has forEach() method. A forEach() method calls each element in NodeList so no need to count NodeList item and iterate in a for loop.

For example, active-link.js.

Proposed resolution

Use NodeList.forEach() and remove item counting and a for loop.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

javascript

Created by

πŸ‡―πŸ‡΅Japan tom konda Kanagawa, Japan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024