<!--
{
  "documentType" : "article",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/domrange-additions",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "DOMRange Additions"
}
-->

# DOMRange Additions

Additions to the `DOMRange` class facilitate communication between the DOM API and WebKit and help convert web content into standard markup form.

## Topics

### Creating archives

[`var webArchive: WebArchive!`](/documentation/WebKit/DOMRange/webArchive)

A web archive of the content in the range.

### Formatting content ranges

[`var markupString: String!`](/documentation/WebKit/DOMRange/markupString)

A string in markup format corresponding to the content in the range.

## See Also

  [WebKit DOM Programming Topics](https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/SafariJSProgTopics/index.html#//apple_ref/doc/uid/TP40001483)

  [WebKit Objective-C Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/DisplayWebContent/DisplayWebContent.html#//apple_ref/doc/uid/10000164i)



---

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)