Repository navigation
Commit c882092
Closes #25351
The maintainer's action on #25351, written under the maintainer's
delegation in chat: two refused-direction rows in the class-by-class
refused table of
`packages/formula/src/mail-html-hole-placement.test.ts`, one per scan
correction of `86330c090` (PR #25212), as contract review `6342085020` ③
asked. Test-only: no change to the classifier, the rule, its doors or
the renderer.
Per the card's disclosure rule, this body names each row by class only;
the samples live in the test source.
## The two rows
1. **The tag-open state.** A hole inside a tag that opens immediately
after a character the tag open state reconsumes in the data state
answers `tag` and is refused.
2. **A script element's escape states.** A hole after an end tag in a
script element's double-escaped text answers `raw-text-element` and is
refused.
Both rows were built from the HTML Living Standard's tokenizer section
(the tag open state; the script data escaped and double escaped states).
## Ablation (local, against the classifier at this PR's base)
Each correction of `86330c090` in
`packages/formula/src/mail-html-hole-placement.ts` was reverted on its
own, the file run, and the correction re-applied; the file was
byte-identical to the base after each restore.
| Correction reverted | Rows red | Reading |
| --- | --- | --- |
| Tag open state: reconsume in the data state (back to a plain return to
data) | 1 of 48: the `tag` row added here | expected `tag`, received
`element-text` |
| Script escape states: the escape flag's arm/disarm and the end-tag
guard removed | 1 of 48: the `raw-text-element` row added here |
expected `raw-text-element`, received `element-text` |
With both corrections in place: 48 of 48 pass in this file.
## Verification
- `packages/formula`: `vitest run`, 53 files and 1424 tests pass; `pnpm
typecheck` (including `check:test-typecheck`) passes.
- `eslint` on the changed file: clean.
## Declarations
Clause-②: no
Metadata-protocol: none
Test-only, so no changeset: the diff publishes nothing from any released
package, and this PR carries `skip-changeset`, as the card's acceptance
states.
---
_Generated by [Claude Code](https://claude.ai/code)_
Co-authored-by: Claude <noreply@anthropic.com>
1 parent ec4ef94 commit c882092
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
0 commit comments