function diffHTMLStrings(original, modified) {
  let convertHTML = initConvertHTML({ VNode: VNode, VText: VText }).bind(null, {
    getVNodeKey: function(attributes) {
      return attributes.id;
    }
  });

  let origVTree = convertHTML(original);
  let modVTree = convertHTML(modified);

  let patches = diff(origVTree, modVTree);

  const element = document.createElement("div");
  element.innerHTML = original;
  let newDOM = patch(element.firstChild, patches, { patch: patchRecursive });

  return newDOM;
}
/**
 * Returns a DOM tree that shows the differences in the text content of the
 * original and modified trees. The HTML for the trees are passed in as
 * strings.
 * @param {string} original
 * @param {string} modified
 */
Returns a DOM tree that shows the differences in the text content of the
original and modified trees. The HTML for the trees are passed in as
strings.
@param {string} original
@param {string} modified
Returns a DOM tree that shows the differences in the text content of the original and modified trees . The HTML for the trees are passed in as strings . @param { string } original @param { string } modified
function diffHTMLStrings(original, modified) {
  let convertHTML = initConvertHTML({ VNode: VNode, VText: VText }).bind(null, {
    getVNodeKey: function(attributes) {
      return attributes.id;
    }
  });
  let origVTree = convertHTML(original);
  let modVTree = convertHTML(modified);
  let patches = diff(origVTree, modVTree);
  const element = document.createElement("div");
  element.innerHTML = original;
  let newDOM = patch(element.firstChild, patches, { patch: patchRecursive });
  return newDOM;
}
function diffHTMLStrings ( original , modified ) { let convertHTML = initConvertHTML ( { VNode : VNode , VText : VText } ) . bind ( null , { getVNodeKey : function ( attributes ) { return attributes . id ; } } ) ; let origVTree = convertHTML ( original ) ; let modVTree = convertHTML ( modified ) ; let patches = diff ( origVTree , modVTree ) ; const element = document . createElement ( "div" ) ; element . innerHTML = original ; let newDOM = patch ( element . firstChild , patches , { patch : patchRecursive } ) ; return newDOM ; }
Returns a DOM tree that shows the differences in the text content of the
 original and modified trees.
Returns a DOM tree that shows the differences in the text content of the original and modified trees .