-
17 Jul 2009 5:40 AM #11Sencha - Community Support Team
- Join Date
- Nov 2008
- Location
- San Diego, Peoples' Republic of California
- Posts
- 2,040
- Vote Rating
- 7
also:
e.target.localName == 'HTML'
e.target.tagName == 'HTML'
-
17 Jul 2009 5:44 AM #12
Nope, it fails. However, this works:
Anyway, I wouldn't restrict it on DataView, as the same problem occurres in Ext.grid.*Code:Ext.Element.prototype.contains = function(el) { if (isXUL(el)) { return false; }; return !el ? false : Ext.lib.Dom.isAncestor(this.dom, el.dom ? el.dom : el);
-
17 Jul 2009 6:11 AM #13
here's a completely useless nugget:
Firebug 1.4.0 + Firefox 3.5 now allows logging of the infamous anonymous-div which triggers this error. woot.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
17 Jul 2009 6:14 AM #14
-
17 Jul 2009 6:16 AM #15
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
17 Jul 2009 6:19 AM #16
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
17 Jul 2009 6:20 AM #17Sencha - Community Support Team
- Join Date
- Nov 2008
- Location
- San Diego, Peoples' Republic of California
- Posts
- 2,040
- Vote Rating
- 7
Try this.
I am not getting the error anymore.
Not tested a whole lot though.
Code:Ext.Element.prototype.contains = function(el) { if (el && Ext.isGecko && Object.prototype.toString.call(el) === '[object XULElement]') { return false; } return !el ? false : Ext.lib.Dom.isAncestor(this.dom, el.dom ? el.dom : el); };
-
17 Jul 2009 6:20 AM #18
I'd vote for the isXUL-check, though it introduces some overhead. Depending on the behavior of future FF's, I could also live with the try/catch solution for now.
-
17 Jul 2009 6:21 AM #19Sencha - Community Support Team
- Join Date
- Nov 2008
- Location
- San Diego, Peoples' Republic of California
- Posts
- 2,040
- Vote Rating
- 7
If the above works, awesome.
I like it because you don't have to hack on any of the components like DataView.
-
17 Jul 2009 6:22 AM #20
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote

... is that the best we can do to check for a XUL Element?