| Issue 1276: | RichTextArea throws TypeError 'null' is Null or not an object in IE6 | |
| 5 people starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
Found in GWT Release:
1.4
Detailed description:
The method detachEvents(Element elem) throws a TypeError 'null' is Null or
not an object.
The method looks like this
private static native void detachEvents(Element elem) /*-{
var body = elem.contentWindow.document.body;
body.onkeydown =
body.onkeyup =
body.onkeypress =
body.onmousedown =
body.onmouseup =
body.onmousemove =
body.onmouseover =
body.onmouseout =
body.onclick = null;
}-*/;
where in my test case the element parameter is
<IFRAME class=gwt-RichTextArea src="javascript:''" __eventBits="7041"
onchange="null" onerror="null" __listener="null" __widgetID="1"></IFRAME>
Workaround if you have one:
Links to the relevant GWT Developer Forum posts:
|
||||||||||||||
,
Jul 06, 2007
This might be related to the several other RTA bugs that have been filed, but I'm not 100% sure so I'm leaving them all open.
Owner: gwt.team.jgw
Labels: -Priority-Medium Priority-Critical Category-UI Milestone-1_4_RC2 |
|||||||||||||||
,
Jul 09, 2007
Once I get done reviewing all the RichText issues, I suspect that this will be subsumed by one of them.
Status: Accepted
|
|||||||||||||||
,
Jul 17, 2007
I haven't been able to reproduce this on IE yet. Can you give me a test snippet that will reproduce it? Thanks.
Status: NeedsInfo
|
|||||||||||||||
,
Jul 22, 2007
I'm not sure if this is the same problem, but I get the same error when I try to
clear one of my panels. The panel does not have a rich text editor on it. I'm just
trying to narrow it down to the smallest case that produces this error, but it only
happens in IE 6.0 (not 6.5 or 7), and it's to do with this line:
function detachEvents(elem){
var body = elem.contentWindow.document.body;
>>>body.onkeydown = body.onkeyup = body.onkeypress = body.onmousedown =
body.onmouseup = body.onmousemove = body.onmouseover = body.onmouseout = body.onclick
= null;
}
As soon as I can come up with a small test case to show it I will, but I thought I'd
post here in case you guys were using IE6.5 or 7 to try and reproduce this problem.
Rusty
|
|||||||||||||||
,
Jul 23, 2007
Actually I stand corrected. It is a RTA bug. I cracked open the gwt_user.jar, commented out the detach events line, and hey presto IE 6.0 was happy. Let me know if you need a test case for this, or if this is enough information to go on. |
|||||||||||||||
,
Aug 17, 2007
This appears to be working correctly with the last round of RTA fixes. Please let us know if this is not the case.
Status: FixedNotReleased
|
|||||||||||||||
,
Aug 20, 2007
1.4 RC2 now released.
Status: Fixed
|
|||||||||||||||
|
,
Apr 28, 2008
Owner: jgw
|
|||||||||||||||
| ► Sign in to add a comment | |||||||||||||||