Closed donuk closed 6 years ago
I'm having this issue too. That line seems to be a bug to me. Do you want a pull request @gawel ?
btw, I think I see why tag.tail = root.tail
was included. The thinking being that if I do .html("food<span/>bah")
I want ensure that bah
is included. However this is already taken care of, as the .tail
of the <span/>
will be bah
. It's a misunderstanding of what .tail
is.
I have no problem removing this line if it doesn't break tests. Feel free to provide a PR
Apologies if I'm mis-understanding the way this should work but I'm running the following:
And it outputs the following:
I would expect it to output:
I can fix it by removing a line from the html method, but I presume that line was there for a reason?: