Closed DaniRey closed 5 years ago
Variables in the text of a gauge definition need special treatment. Scala parses them to an Atom instead of merging them with the neighbouring Text.
Therefore <p>I have {bananas.size} Bananas <b> yeah</b></p> is an Element with the following children: Text(I have), Atom(3), Text(Bananas ), Elem(b)
<p>I have {bananas.size} Bananas <b> yeah</b></p>
Text(I have), Atom(3), Text(Bananas ), Elem(b)
We have to merge them to the following, before we test if the gauge fits the DOM Node: Text(I have 3 Bananas ), Elem(b)
Text(I have 3 Bananas ), Elem(b)
Variables in the text of a gauge definition need special treatment. Scala parses them to an Atom instead of merging them with the neighbouring Text.
Therefore
<p>I have {bananas.size} Bananas <b> yeah</b></p>
is an Element with the following children:Text(I have), Atom(3), Text(Bananas ), Elem(b)
We have to merge them to the following, before we test if the gauge fits the DOM Node:
Text(I have 3 Bananas ), Elem(b)