code: function truncateNestedNodeStart($element, $rootNode, $clipNode, options) {
      var element = $element[0];
  
      var $children = $element.contents();
      var $child, child;
  
      var length = $children.length;
      var index = length -1;
      var truncated = false;
  
      $element.empty();
  
      for (; index >= 0 && !truncated; index--) {
  
        $child = $children.eq(index);
        child = $child[0];
  
        if (child.nodeType === 8) { // comment node
          continue;
        }
  
        element.insertBefore(child, element.firstChild);
  
        if ($clipNode.length) {
          if ($.inArray(element.tagName.toLowerCase(), BLOCK_TAGS) >= 0) {
            // Certain elements like <li> should not be appended to.
            $element.after($clipNode);
          } else {
            $element.append($clipNode);
          }
        }
  
        if ($rootNode.height() > options.maxHeight) {
          if (child.nodeType === 3) { // text node
            truncated = truncateTextContent($child, $rootNode, $clipNode, options);
          } else {
            truncated = truncateNestedNode($child, $rootNode, $clipNode, options);
          }
        }
  
        if (!truncated && $clipNode.length) {
          $clipNode.remove();
        }
  
      }
  
      return truncated;
    }
docs: /* Recursively truncates a nested node. Traverses the children node tree in reverse order.