You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sdavids
changed the title
https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Solve_HTML_problems/Use_data_attributes#javascript_access
Improve the JavaScript section on the data attributes page
Jan 19, 2025
MDN URL
https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Solve_HTML_problems/Use_data_attributes
What specific section or headline is this issue about?
JavaScript access
What information was incorrect, unhelpful, or incomplete?
Please improve the JavaScript example by showing
querySelectorAll
in combination with a data attribute selector.It is implicitly shown via the CSS section and mentioned on querySelectorAll but having it explicitly in this section would be beneficial.
What did you expect to see?
Maybe also a link to querySelectorAll.
Do you have anything more you want to share?
Is a very common pattern so having the selector shown will be beneficial.
The text was updated successfully, but these errors were encountered: