Reply to: Get nodelist from Selection/Range?September 12, 2012 at 4:26 pm
Does getNodesByXPath() help you here? That is the first thing I can think of that requires the least amount of code.
The DOMElement object has this as a method. You can use Selection.ContainerNode to get the node for the current selection's immediate parent.