selectionStartNode: function() {
            if (window.getSelection)
                return window.getSelection().getRangeAt(0).startContainer;
            else if (document.selection)
                return document.selection.createRange().startContainer;