---
name: "up.RenderResult.prototype.fragment"
area: "API"
kind: "Property"
parent: "up.RenderResult class"
url: "https://unpoly.com/api/up.RenderResult.prototype.fragment"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.RenderResult class](https://unpoly.com/api/up.RenderResult.md)</nav>

# up.RenderResult.prototype.fragment

Returns the inserted fragment.

When [multiple fragments](https://unpoly.com/learn/targeting-fragments.md#multiple) were inserted, the first fragment is returned. To get a list of all inserted fragments, use the [`{ fragments }`](https://unpoly.com/api/up.RenderResult.prototype.fragments.md) property.

See also [`up.Request#fragment`](https://unpoly.com/api/up.Request.prototype.fragment.md).

---

## Value {#value}

### fragment {#fragment}

Type: [Element](https://developer.mozilla.org/en-US/docs/Web/API/Element)

