From 6da3f7bd49cd4d8aeabff4148b75fd5024432ec3 Mon Sep 17 00:00:00 2001 From: iska Date: Thu, 29 Dec 2016 22:54:39 +0100 Subject: [PATCH] =?UTF-8?q?Mark=20HTML=20Range=E2=80=99s=20default=20initi?= =?UTF-8?q?alizer=20as=20unavailable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/HTMLRange.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/HTMLRange.h b/Sources/HTMLRange.h index 1f1302a..b3b7870 100644 --- a/Sources/HTMLRange.h +++ b/Sources/HTMLRange.h @@ -61,6 +61,11 @@ typedef NS_ENUM(unsigned short, HTMLRangeComparisonMethod) */ @property (nonatomic, readonly, weak) HTMLNode *commonAncestorContainer; +/** + @abstract A range is always associated with a HTML Document. Use `initWithDocument:` initializer instead. + */ +- (instancetype)init NS_UNAVAILABLE; + /** Initializes a new range instance for the given document.