Skip to content

Fix Document.querySelector examples in DOM docs#43513

Closed
rinadavidyuk826-sudo wants to merge 1 commit intomdn:mainfrom
rinadavidyuk826-sudo:docs-fix-document-queryselector-examples
Closed

Fix Document.querySelector examples in DOM docs#43513
rinadavidyuk826-sudo wants to merge 1 commit intomdn:mainfrom
rinadavidyuk826-sudo:docs-fix-document-queryselector-examples

Conversation

@rinadavidyuk826-sudo
Copy link
Copy Markdown

Fixes #43367

Summary

  • update the first two JavaScript examples to use document.querySelector()
  • align the code with the surrounding explanation that references Document.querySelector()

This change is intentionally small and focused on the issue above.

@rinadavidyuk826-sudo rinadavidyuk826-sudo requested a review from a team as a code owner March 22, 2026 02:38
@rinadavidyuk826-sudo rinadavidyuk826-sudo requested review from hamishwillee and removed request for a team March 22, 2026 02:38
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Mar 22, 2026
@pepelsbey
Copy link
Copy Markdown
Member

It's a duplicate PR. It's already being fixed: #43387

@pepelsbey pepelsbey closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document.querySelector() vs. Element.querySelector()

3 participants