The ownerDocument method for the Objective-C binding for DOMNode calls the implementation method document() instead of ownerDocument(). The spec says that we should be using the logic of ownerDocument(). The issue is that there might be people who depend on this behavior (we ourselves in fact do).
Easy fix?
Itβs easy to make this change, but then it would break clients who rely on the current behavior of returning self for Document. I suggest leaving this in the current Objective-C DOM bindings, but removing it if we ever have a chance to make a fresh start with a compatibility break.
Not worth doing.