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.

  • A web archive of the content in the range. (read-only)

    Declaration

    Swift

    var webArchive: WebArchive! { get }

    Objective-C

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

    Discussion

    Falls within the specified DOM range.

    Availability

    Available in OS X v10.3 and later.

  • A string in markup format corresponding to the content in the range. (read-only)

    Declaration

    Swift

    var markupString: String! { get }

    Objective-C

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

    Availability

    Available in OS X v10.3 and later.