Bug 10889

Summary: the ownerDocument method in DOMNode should call ownerDocument() not document()
Product: WebKit Reporter: Sam Weinig <sam>
Component: WebKit APIAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: darin
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   

Sam Weinig
Reported 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).
Attachments
David Kilzer (:ddkilzer)
Comment 1 2008-02-22 18:53:53 PST
Easy fix?
Darin Adler
Comment 2 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.
Sam Weinig
Comment 3 2017-05-09 16:02:54 PDT
Not worth doing.
Note You need to log in before you can comment on or make changes to this bug.