- From: <bugzilla@jessica.w3.org>
- Date: Thu, 10 Nov 2011 18:45:00 +0000
- To: www-dom@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14765
Summary: ownerDocument of document cannot be a document (for
web compat)
Product: WebAppsWG
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: DOM Core
AssignedTo: annevk@opera.com
ReportedBy: travil@microsoft.com
QAContact: member-webapi-cvs@w3.org
CC: mike@w3.org, www-dom@w3.org
DOM4 currently states that:
--
The ownerDocument attribute must return the node document.
The node document of a document is that document itself.
All nodes have a document at all times.
--
It turns out that this behavior is totally different than all existing
browsers, and in fact sends jQuery into an infinite loop (in the "do/while"
loop inside its "trigger" function, when its event propagation advances to the
ownerDocument of a Document).
IE and Chrome both return "null" for the ownerDocument of a Document, which is
clearly what jQuery expects.
Seems like this was a nice attempt to get some consistency, but it's just not
going to work in practice :(
Please change this to be nullable and return null when the node type is a
document.
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 10 November 2011 18:45:07 UTC