---
title: "surroundContents(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domrange/surroundcontents(_:)"
---

# surroundContents(_:)

## Declaration

```swift
func surroundContents(_ newParent: DOMNode!)
```
