hyTags
HomeHome DocumentationDocumentation

element-clone

Creates a shallow copy of an element.
Parameter
Type
Description
self
Element
The element to clone.
return
element
A cloned copy of the element.
Test Case:Clone element
    <div></div>
    
    <selection-get-element>
    <element-clone>
    <element-get-name>
    <assert-equal value="div" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed