<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebDataSource/webArchive",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebDataSource(py)webArchive"
  },
  "title" : "webArchive"
}
-->

# webArchive

A web archive representing the data source, its subresources, and subframes.

```
var webArchive: WebArchive! { get }
```

## Discussion

In the case of HTML, if the current content is preferred, then send [`webArchive`](/documentation/WebKit/WebDataSource/webArchive) to the appropriate DOM object.

## See Also

[`mainResource`](/documentation/WebKit/WebDataSource/mainResource)

A`WebResource` object representing the data source.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)