Im wondering how I would get the text of a nested list item without getting the text of its children i.e.
I want t
Tim's solution will work. If your markup is always fixed in that format and you only need to read that first stretch of text up to the child element, you could even get away with simply:
node.firstChild.data