RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Clone a node without its children.
 * @param node The node to clone
 */
Clone a node without its children.
@param node The node to clone
Clone a node without its children . @param node The node to clone
function cloneNode(node) {
    var newNode = node ? node.cloneNode(false ) : null;
    if (newNode && newNode instanceof HTMLTableCellElement) {
        newNode.removeAttribute('id');
        if (!newNode.firstChild) {
            newNode.appendChild(node.ownerDocument.createElement('br'));
        }
    }
    return newNode;
}
function cloneNode ( node ) { var newNode = node ? node . cloneNode ( false ) : null ; if ( newNode && newNode instanceof HTMLTableCellElement ) { newNode . removeAttribute ( 'id' ) ; if ( ! newNode . firstChild ) { newNode . appendChild ( node . ownerDocument . createElement ( 'br' ) ) ; } } return newNode ; }
Clone a node without its children.
Clone a node without its children .
/*deep*/