---
title: domDocument
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webframe/domdocument
---

# domDocument

The web frame’s DOM document.

## Declaration

```swift
var domDocument: DOMDocument! { get }
```

## Discussion

Discussion nil if the receiver doesn’t have a DOM document; for example, if it’s a standalone image.

## See Also

### Getting DOM Objects

- [frameElement](webkit/webframe/frameelement.md)
- [globalContext](webkit/webframe/globalcontext.md)
- [javaScriptContext](webkit/webframe/javascriptcontext.md)
- [windowObject](webkit/webframe/windowobject.md)
