In this example The clone() method makes a copy of selected elements, including child nodes, text and attributes.