Use copy()

If you need deep copy of tag instance, use copy() . or copyNoException() You can get complete copy of all the attribute and content.

Do NOT use clone() and copyTo()

All tag class has also clone() and copyTo() methods but NEVER use it. These method can not copy the aria-* and data-* attribute of html5.