docs: function selectText (element) {
                      var range;
                      if ($window.document.selection) {
                          range = $window.document.body.createTextRange();
                          range.moveToElementText(element);
                          range.select();
                      } else if ($window.getSelection) {
                          range = $window.document.createRange();
                          range.selectNode(element);
                          $window.getSelection().addRange(range);
                      }
                  }