Mac OS X Reference Library Apple Developer Connection spyglass button

DOMRange Additions Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/WebKit.framework
Availability
Available in Mac OS X v10.3.9 and later.
Declared in
WebDOMOperations.h
Companion guides

Overview

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

Tasks

Creating Archives

Formatting Content Ranges

Instance Methods

markupString

Returns a string in markup format corresponding to the content in the range.

- (NSString *)markupString

Return Value

An entity-encoded string containing markup for content that falls within the specified DOM range.

Availability
Declared In
WebDOMOperations.h

webArchive

Returns a web archive of the content in the range.

- (WebArchive *)webArchive

Return Value

A web archive of all content that falls within the specified DOM range.

Availability
Declared In
WebDOMOperations.h

Last updated: 2009-08-19

Did this document help you? Yes It's good, but... Not helpful...