Open WebFreak001 opened 5 years ago
which I can't explain to myself.
I will figure out why that is happening.
I know that doing a innerText
, innerHTML
or textContent
causes the rest of the content of the node to be emptied.
You are right that @child something = "test";
should actually create a text node. I thought about that as well.
I want to mix an element and a text node so I tried the following code:
and expected
but instead got
which I can't explain to myself.
Changing one to textContent and the other to innerText (but not both the same) seems to fix this but that feels like a hack.
I thought maybe adding a
@child something = "test";
instead of the innerText prop might be properly handled as text node, but instead that only gave me compilation errors.