-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the nodeListForEach
helper function
#3466
Labels
Milestone
Comments
github-project-automation
bot
moved this to Backlog 🗄
in GOV.UK Design System cycle board
Mar 31, 2023
colinrotherham
moved this from Backlog 🗄
to In progress 📝
in GOV.UK Design System cycle board
May 3, 2023
colinrotherham
moved this from In progress 📝
to Needs review 🔍
in GOV.UK Design System cycle board
May 3, 2023
Looks like this was done as part of #3570. |
36degrees
moved this from Needs review 🔍
to Ready to release 🚀
in GOV.UK Design System cycle board
May 9, 2023
36degrees
moved this from Ready to release 🚀
to Done 🏁
in GOV.UK Design System cycle board
Dec 8, 2023
peteryates
added a commit
to DFE-Digital/npq-registration
that referenced
this issue
Feb 23, 2024
Favour using the JavaScript native $nodelist.forEach(...) instead See alphagov/govuk-frontend#3466
peteryates
added a commit
to DFE-Digital/npq-registration
that referenced
this issue
Feb 23, 2024
Favour using the JavaScript native $nodelist.forEach(...) instead See alphagov/govuk-frontend#3466
peteryates
added a commit
to DFE-Digital/npq-registration
that referenced
this issue
Feb 26, 2024
Favour using the JavaScript native $nodelist.forEach(...) instead See alphagov/govuk-frontend#3466
peteryates
added a commit
to DFE-Digital/npq-registration
that referenced
this issue
Feb 26, 2024
Favour using the JavaScript native $nodelist.forEach(...) instead See alphagov/govuk-frontend#3466
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What
Replace all calls to the
nodeListForEach
helper function with calls toNodeList.prototype.forEach
(offor...of
depending on what we support).Remove the
nodeListForEach
function and related tests.Why
As of GOV.UK Frontend v5.0, JavaScript will only run in browsers that support ES6 modules. All browsers that support ES6 modules also support NodeList.prototype.forEach, so can get rid of this helper function.
Who needs to work on this
Developers
Who needs to review this
Developers
Done when
nodeListForEach
have been replaced with vanilla API callsnodeListForEach
function has been removedThe text was updated successfully, but these errors were encountered: