Console
hyTags
Home
Home
Documentation
Documentation
fragment-new
Creates a new fragment by cloning the provided fragment, or returns an empty fragment if none is provided.
Parameter
Type
Description
fragment
Fragment?
The fragment to clone. If nil, an empty fragment is returned.
return
fragment
A cloned copy of the fragment, or an empty fragment.
Test Case:
Create empty fragment
<div></div>
<div></div>
<fragment-new></fragment-new>
<fragment-new></fragment-new>
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed