[Prototype-core] Re: Suggestion: getElementsByClassName wrapper for firefox 3.0

2007-08-24 Thread Mislav Marohnić
On 8/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ... this difference may cause some bugs, so I suggest a small wrapper for getElementsByClassName in firefox3.0 This is just a wrapper for document.gEBCN, but don't forget that the method itself is available on every node in the DOM. We

[Prototype-core] Re: Suggestion: getElementsByClassName wrapper for firefox 3.0

2007-08-24 Thread Tobie Langel
I'm not saying we should do that, but can't we just wrap it HTMLElement.prototype too ? Tobie On Aug 24, 6:49 am, Mislav Marohnić [EMAIL PROTECTED] wrote: On 8/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ... this difference may cause some bugs, so I suggest a small wrapper for

[Prototype-core] Re: Suggestion: getElementsByClassName wrapper for firefox 3.0

2007-08-24 Thread Mislav Marohnić
On 8/24/07, Tobie Langel [EMAIL PROTECTED] wrote: I'm not saying we should do that, but can't we just wrap it HTMLElement.prototype too ? No, I tried :) We must go through HTMLElement, HTMLFormElement, HTMLTableElement ... each and every one. Crazy, yeah :D

[Prototype-core] Re: Suggestion: getElementsByClassName wrapper for firefox 3.0

2007-08-24 Thread [EMAIL PROTECTED]
How about as an extended element method? On Aug 24, 7:57 am, Mislav Marohni [EMAIL PROTECTED] wrote: On 8/24/07, Tobie Langel [EMAIL PROTECTED] wrote: I'm not saying we should do that, but can't we just wrap it HTMLElement.prototype too ? No, I tried :) We must go through

[Prototype-core] Re: Suggestion: getElementsByClassName wrapper for firefox 3.0

2007-08-24 Thread [EMAIL PROTECTED]
Maybe the first thing is not to overwrite the native method, I agree with Mislav, to extend the NodeList.prototype maybe is the best choice, and overwrite in the element methods never want that thing On Aug 25, 12:35 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How about