Bug 10889 - the ownerDocument method in DOMNode should call ownerDocument() not document()
Summary: the ownerDocument method in DOMNode should call ownerDocument() not document()
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-16 08:02 PDT by Sam Weinig
Modified: 2017-05-09 16:02 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2006-09-16 08:02:01 PDT
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).
Comment 1 David Kilzer (:ddkilzer) 2008-02-22 18:53:53 PST
Easy fix?

Comment 2 Darin Adler 2010-05-30 11:42:28 PDT
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.
Comment 3 Sam Weinig 2017-05-09 16:02:54 PDT
Not worth doing.