fix(anatomy): prescan closers searched after their opener; ASCII-only href trim; root painting attributes removed (security audit R3)

This commit is contained in:
bchanot committed 2026-10-15 00:25:43 +02:00
1 parent d3d63394dd
commit 157c854ed1
13 files changed
+3231 -21

No files matched your search

+3
View File
@@ -119,6 +119,9 @@ describe('R3 anatomy on the shipped module', () => {
)
expect(kinds['deep 99,000 levels']).toBe('svg_rejected:too_deep')
expect(kinds['use chain 12 x 20']).toBe('svg_rejected:too_complex')
// A closer overlapping its opener (`<!-->`) must not hide nesting from the prescan.
expect(kinds['comment-desync-depth.svg']).toBe('svg_rejected:too_deep')
expect(kinds['comment-desync-attributes.svg']).toBe('svg_rejected:too_complex')
})
it('composes the product drawing within budget', async () => {