hyTags
HomeHome DocumentationDocumentation

selection-prepend-children

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