hyTags
HomeHome DocumentationDocumentation

selection-append-children

Appends a fragment as children to the selected element.
Parameter
Type
Description
fragment
Fragment
Fragment to append as children
return
void
Void
Test Case:Append children to element
    <div></div>
    
    <fragment-from-string value="<span>child</span>">
    <selection-append-children></selection-append-children>
    <selection-get-html>
    <assert-equal value="<span>child</span>" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed