Fix: Splitting text does not work as expected when target elements contain comment nodes. This resulted in empty word and line elements in the split text, and unexpected white space (caused by empty word elements).
Changes:
ignore text nodes that contain only white space. The split function already ignores comment nodes. But the white space around comment nodes was causing issues.
Add new example and tests with target elements containing comment nodes.
Fix: Splitting text does not work as expected when target elements contain comment nodes. This resulted in empty word and line elements in the split text, and unexpected white space (caused by empty word elements).
Changes: