diff --git a/packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts b/packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts
index 79e6fc9c6e8..2fd39c55022 100644
--- a/packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts
+++ b/packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts
@@ -389,6 +389,23 @@ describe('stringify static html', () => {
])
})
+ test('should remove overloaded boolean attribute for `false`', () => {
+ const { ast } = compileWithStringify(
+ `
+ ${repeat(
+ ``,
+ StringifyThresholds.ELEMENT_WITH_BINDING_COUNT,
+ )}
+
`,
+ )
+ expect(ast.cached).toMatchObject([
+ cachedArrayStaticNodeMatcher(
+ repeat(``, StringifyThresholds.ELEMENT_WITH_BINDING_COUNT),
+ StringifyThresholds.ELEMENT_WITH_BINDING_COUNT,
+ ),
+ ])
+ })
+
test('should stringify svg', () => {
const svg = `