From 8602ad5a7ba07e8a3f2e7981047db6f77ca1a90b Mon Sep 17 00:00:00 2001 From: iska Date: Thu, 5 Jan 2017 02:44:05 +0100 Subject: [PATCH] =?UTF-8?q?Add=20extended=20documentation=20for=20Node?= =?UTF-8?q?=E2=80=99s=20containsNode=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be deprecated and replaced with isInclusiveAncestor in a later release. --- Sources/include/HTMLNode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/include/HTMLNode.h b/Sources/include/HTMLNode.h index ab3fa5b..5e94f2e 100644 --- a/Sources/include/HTMLNode.h +++ b/Sources/include/HTMLNode.h @@ -340,7 +340,8 @@ typedef NS_OPTIONS(unsigned short, HTMLDocumentPosition) - (BOOL)isDescendantOfNode:(HTMLNode *)node; /** - Checks whether this node contains the given node. + Checks whether this node contains the given node. This performs an `invlusive ancestor` check, i.e. it returns `YES` + if the given node is the same object as this node. @param node The node to check. @return `YES` if this node contains the given node, `NO` otherwsie.