code: function autoCompleteResults_getUnderlinedText(result, type) {
      this._controller.assertJS("subject.resultNode != null",
                                {resultNode: result.getNode()});
  
      // Get the description element of the given title or url
      var description = null;
      switch (type) {
        case "title":
          description = result.getNode().boxObject.firstChild.childNodes[1].childNodes[0];
          break;
        case "url":
          description = result.getNode().boxObject.lastChild.childNodes[2].childNodes[0];
          break;
        default:
          throw new Error(arguments.callee.name + ": Type unknown - " + type);
      }
  
      let values = [ ];
      for each (node in description.childNodes) {
        if (node.nodeName == 'span') {
          // Only add underlined text to the results
          values.push(node.innerHTML);
        }
      }
  
      return values;
    }
docs: Returns the underlined text of all results from the text or URL
  
  @param {ElemBase} result
  Autocomplete result which has to be checked
  @param {string} type
  Type of element to check (text or url)
  
  @returns An array of substrings which are underlined
  @type {Array of string}