Skip to content

fix: replace HTML comment stripping in Octane test - #15

Merged
phtn merged 1 commit into
mainfrom
alert-fix-4
Oct 4, 2026
Merged

phtn merged 1 commit into
mainfrom
alert-fix-4

Conversation

@phtn

@phtn phtn commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

The Octane DOM-binding test removed HTML comments with a regex that can recreate comment markers when matches are deleted, triggering CodeQL alert #4. Parse the rendered HTML with the existing happy-dom dependency and assert the output element's text directly, closing the window afterward.

Addresses https://github.com/beastjs/beast/security/code-scanning/4.

Validation:

  • bun test tests/octane-0.8.test.ts — 27 tests passed.
  • bun run typecheck — passed across all packages.
  • git diff --check — passed.

@phtn
phtn merged commit 3544981 into main Oct 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant