
    if (inner) {
      var ancestors = [];
      for (var el = inner.parentNode;
           el != null && el.nodeType == Node.ELEMENT_NODE;
           el = el.parentNode) {
        var lcName = el.nodeName.toLowerCase();
        if (lcName == elementNameA) {
          if (ancestors.length) {
            if (!Object.hasOwnProperty.call(result, elementNameA)) {
              result[elementNameA] = newBlankObject();
            }
            ancestors.reverse();
            result[elementNameA][elementNameB] 