diff --git a/packages/runtime-dom/__tests__/patchProps.spec.ts b/packages/runtime-dom/__tests__/patchProps.spec.ts index 304d9f9c1..54f4d3604 100644 --- a/packages/runtime-dom/__tests__/patchProps.spec.ts +++ b/packages/runtime-dom/__tests__/patchProps.spec.ts @@ -394,4 +394,12 @@ describe('runtime-dom: props patching', () => { expect(fn).toBeCalledTimes(0) }) + + // #12211 + test('should not override content when `text` attribute is set', () => { + const root = document.createElement('div') + render(h('a', { text: '' }, ['foo']), root) + const a = root.children[0] + expect(a.textContent).toBe('foo') + }) })