diff --git a/src/generators/dom/visitors/Element/Element.ts b/src/generators/dom/visitors/Element/Element.ts index a5974f9485..5e831becd7 100644 --- a/src/generators/dom/visitors/Element/Element.ts +++ b/src/generators/dom/visitors/Element/Element.ts @@ -107,6 +107,20 @@ export default function visitElement ( generator: DomGenerator, block: Block, st } if ( node.name !== 'select' ) { + if ( node.name === 'textarea' ) { + // this is an egregious hack, but it's the easiest way to get `, + + test ( assert, component, target ) { + const textarea = target.querySelector( 'textarea' ); + assert.strictEqual( textarea.value, `\n\t

not actually an element. 42

\n` ); + + component.set({ foo: 43 }); + assert.strictEqual( textarea.value, `\n\t

not actually an element. 43

\n` ); + } +}; \ No newline at end of file diff --git a/test/runtime/samples/textarea-children/main.html b/test/runtime/samples/textarea-children/main.html new file mode 100644 index 0000000000..de50c807d6 --- /dev/null +++ b/test/runtime/samples/textarea-children/main.html @@ -0,0 +1,3 @@ + \ No newline at end of file