Hi Tracey,
It turned out to be really simple: you can translate between text locations and element locations using two methods (one for each direction).
var oTRange = oDoc.TextSelection;
var oTLoc = oTRange.beg; /* beg and end are two TLoc objects, which will be the same
if no text is selected */
var oELoc = oDoc.TextLocToElementLoc( TLoc );
Kind regards
Jang