• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cheeriojs / cheerio / 47105014976
99%

Build:
DEFAULT BRANCH: main
Ran 03 Dec 2026 12:23PM UTC
Jobs 1
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Dec 2026 12:22PM UTC coverage: 99.485%. Remained the same
47105014976

push

github

web-flow
fix(attributes): return option values, not text, from val() on a multiple select (#5484)

`val()` on a `<select multiple>` returned the text of each selected option instead of its `value` attribute. A single select already returns the value, and jQuery returns the value in both cases, falling back to the text only for an option without a `value` attribute:

```js
const $ = load(
  '<select multiple><option value="a" selected>Alpha</option><option selected>Label</option></select>',
);

$('select').val(); // before: ['Alpha', 'Label'], now: ['a', 'Label']
```

`serializeArray()` reads selects through `val()`, so it sent the option text for multiple selects too.

The selected options of a multiple select now go through the same value lookup as a single select, which already falls back to the option's text when it has no `value` attribute.

One test covers both cases in one select: an option with a value attribute, which fails on main, and a valueless option for the text fallback. The existing fixtures missed the bug because their option values equal their text.

274 of 274 branches covered (100.0%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

886 of 892 relevant lines covered (99.33%)

3322.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47105014976.1 03 Dec 2026 12:23PM UTC 16
99.49
GitHub Action Run
Source Files on build 47105014976
  • Tree
  • List 16
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #47105014976
  • c64ee59f on github
  • Prev Build on main (#47104838399)
  • Next Build on main (#47105190599)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc