Mac Developer Library

Developer

WebKit Framework Reference DOMRange Additions Reference

Options
Deployment Target:

On This Page
Language:

DOMRange

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

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import WebKit

Objective-C

@import WebKit;

Availability


Available in OS X v10.3.9 and later.
  • Returns a web archive of the content in the range.

    Declaration

    Swift

    var webArchive: WebArchive! { get }

    Objective-C

    @property(nonatomic, readonly, strong) WebArchive *webArchive

    Return Value

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

    Import Statement

    Objective-C

    @import WebKit;

    Swift

    import WebKit

    Availability

    Available in OS X v10.3.9 and later.

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

    Declaration

    Swift

    var markupString: String! { get }

    Objective-C

    @property(nonatomic, readonly, copy) NSString *markupString

    Return Value

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

    Import Statement

    Objective-C

    @import WebKit;

    Swift

    import WebKit

    Availability

    Available in OS X v10.3.9 and later.