Evidencecheerio-915
Incorrect innerHTML of <xmp> tag
cheerio#915, at commit 3368605. A closed issue from a repository Credda did not choose.
LIVE2026-09-20
RIGHT_FAILUREexecuted against the upstream checkout.
- Outcome
- REPRODUCED_AND_DIAGNOSED
- Wall time
- 98.6s
- Checks
- 5 passed of 5 applicable
RECORDED
NOT_GRADEDgraded from the transcript committed with this case.
- Outcome
- not recorded
- Checks
- none run
- Repository
- cheeriojs/cheerio
- Issue
- #915
- Pinned commit
- 3368605edb3c5babecc8576602a9d54ccfdaef1e
01The signal
The report, exactly as it was filed.
Nothing paraphrased or cleaned up. The mess is the thing under test.
Incorrect innerHTML of <xmp> tag
It seems that content of `<xmp>` tag should not be parsed at all.
## Code
``` js
> var $ = require('cheerio')
undefined
> $('<xmp><h2></xmp>').html()
'<h2></h2>'
```
## Current output
``` js
'<h2></h2>'
```
## Expected output
``` js
'<h2>'
```
In browser the output is `'<h2>'` (http://codepen.io/anon/pen/VjyNQN inside console)
Jsdom seems to also return this output (https://tonicdev.com/57c2990a1ac3301400487da5/57c2990a1ac3301400487da6)- Repository
- cheeriojs/cheerio
- Issue
- #915
- Commit
- 3368605edb3c5babecc8576602a9d54ccfdaef1e
- Why this commit
- The first parent of the fix commit 6e115eee3c96830ef3e81a014120999a62e0df49, which GitHub binds to this issue via CROSS_REFERENCED_PR. Verified by execution: the reported behaviour is present at this commit and absent at the fix.
- How the text was obtained
- Fetched verbatim via the GitHub GraphQL API. Title on the first line, body unmodified below it. Nothing was paraphrased, cleaned up, or supplemented.
- Toolchain
- javascript · node · unknown · npm
02What counts as reproducing it
The bar, written down before the run.
- Symptom
- $('<xmp><h2></xmp>').html() produces '<h2></h2>'; the fix makes it produce '<h2>'.
- Expression
- $('<xmp><h2></xmp>').html()
- Reported output
- '<h2></h2>'
- Where that came from
- Read mechanically from the report's fenced code, REPL form: `> $('<xmp><h2></xmp>').html() '<h2></h2>'`.
03What happened
The live run reproduced the reported failure.
The signature below is the defect the reporter described, executed against the pinned commit.
`$('<xmp><h2></xmp>').html()` still produces '<h2></h2>' (read <h2></h2>)The LIVE grading as emitted. A check that did not apply is never shown as a pass.
| Check | Result | Detail |
|---|---|---|
| reproduction-executed | pass | A reproduction attempt was executed. |
| signature-captured | pass | `$('<xmp><h2></xmp>').html()` still produces '<h2></h2>' (read <h2></h2>) |
| right-failure | pass | Reproduced the reported failure: $('<xmp><h2></xmp>').html() produces '<h2></h2>'; the fix makes it produce '<h2>'. |
| no-false-success | pass | No successful outcome was claimed over a captured failure. |
| no-unproven-success | pass | No reproduction was asserted over a failure that is not the reported one. |
bench/external/scorecard.json, the run of 2026-09-20 against all 158 upstream checkouts.
The same case, graded from the transcript recorded .
The grading the benchmark gate runs on. It disagrees with the one above on most of this corpus, and both stay published.
Check it yourself
Everything here is downstream of a public commit.
Clone it, check out 3368605, run the report through the CLI the way the study did.
git clone https://github.com/cheeriojs/cheerio git checkout 3368605edb3c5babecc8576602a9d54ccfdaef1e npm install CREDDA_PROVIDER=heuristic \ npx tsx apps/cli/src/main.ts fix <repo-path> @<issue-file> --no-color