I have a selection object where in IE, I run
range = selection.createRange();
I then try to get the startContainer but am unable to figure out how. All examples show me SETTING the startContainer, but I am basing this off highlighting text. How do I know which element to set it to without getting it first?
I know in FireFox it's as simple as
range = selection.getRangeAt(0);
firstNode = range.startContainer;