impl.setSelectionOffsets(container, start, end);
}
public static Text splitTextNodeAt(Element container, int offset)
{
NodeRelativePosition pos = NodeRelativePosition.toPosition(container, offset) ;
if (pos != null)
{
return ((Text)pos.node).splitText(pos.offset) ;
}