Skip to content
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

Updates api/element/Element:QuerySelectorAll() example, fixes #35003 #35006

Merged
merged 6 commits into from
Jul 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions files/en-us/web/api/element/queryselectorall/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ each descendant node that matches at least one of the specified selectors.

```html
<section class="box" id="sect1">
<div class="funnel-chart-percent1">10.900%</div>
<div class="funnel-chart-percent2">3700.00%</div>
<div class="funnel-chart-percent3">0.00%</div>
<div data-name="funnel-chart-percent1">10.900%</div>
<div data-name="funnel-chart-percent2">3700.00%</div>
<div data-name="funnel-chart-percent3">0.00%</div>
</section>
```

Expand All @@ -68,10 +68,10 @@ const refs = [
];

// attribute selectors
// const refs = [...document.querySelectorAll(`[class*="funnel-chart-percent"]`)];
// const refs = [...document.querySelectorAll(`[class^="funnel-chart-percent"]`)];
// const refs = [...document.querySelectorAll(`[class$="funnel-chart-percent"]`)];
// const refs = [...document.querySelectorAll(`[class~="funnel-chart-percent"]`)];
// const refs = [...document.querySelectorAll(`[data-name*="funnel-chart-percent"]`)];
// const refs = [...document.querySelectorAll(`[data-name^="funnel-chart-percent"]`)];
// const refs = [...document.querySelectorAll(`[data-name$="funnel-chart-percent"]`)];
// const refs = [...document.querySelectorAll(`[data-name~="funnel-chart-percent"]`)];
```

### Obtaining a list of matches
Expand Down