The wholeText of Text for JS returns the combined data of all direct Text node siblings.
text.wholeText