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

# DOMNode Additions

Additions to the `DOMNode` class help convert the structured nodes of DOM content into a rich web-viewable form.

## Topics

### Creating archives

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

A web archive of the content of the node and its children.

### Obtaining layout rectangles

[`func boundingBox() -> NSRect`](/documentation/WebKit/DOMNode/boundingBox())

Returns a rectangle that bounds the onscreen rendering of the node.

[`func lineBoxRects() -> [Any]!`](/documentation/WebKit/DOMNode/lineBoxRects())

Returns the rectangles that bound each line of text in the node.

## See Also

  [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)