DOMNode Additions Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/WebKit.framework
Availability
Available in OS X v10.3.9 and later.
Declared in
DOMExtensions.h
WebDOMOperations.h
Companion guides
Safari Document Object Model Overview
WebKit Objective-C Programming Guide

Overview

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

Tasks

Creating Archives

Obtaining Layout Rectangles

Instance Methods

boundingBox

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

- (NSRect)boundingBox
Return Value

The rectangle that represents the bounding box of the onscreen rendering of the node.

Availability
  • Available in OS X v10.5 and later.
Declared In
DOMExtensions.h

lineBoxRects

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

- (NSArray *)lineBoxRects
Return Value

An array of rectangles, in which each rectangle represents the bounding box of a line of text in the node.

Availability
  • Available in OS X v10.5 and later.
Declared In
DOMExtensions.h

webArchive

Returns a web archive of the content of the node and its children.

- (WebArchive *)webArchive
Return Value

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

Availability
  • Available in OS X v10.3.9 and later.
Declared In
WebDOMOperations.h