DOMRange Additions Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/WebKit.framework
Availability
Available in 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
  • Available in OS X v10.3.9 and later.
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
  • Available in OS X v10.3.9 and later.
Declared In
WebDOMOperations.h