Re: [jQuery] Simulate getElementById(), was: Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Jörn Zaefferer
Dave Methvin schrieb: The #id notation in a selector always uses document.getElementById; in your case it's the wrong document (the document that contains the iframe, not the document of the iframe). One workaround would be to select the object manually when you create the jQuery object,

Re: [jQuery] Simulate getElementById(), was: Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Dave Methvin
I'm just wondering if we could implement an at least not-that-slow-if-used-often approach to simulate getElementById eg. on XML docs. I think you could just change this: if ( m[1] == # ) { // Ummm,

Re: [jQuery] Simulate getElementById(), was: Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Jörn Zaefferer
Dave Methvin schrieb: I'm just wondering if we could implement an at least not-that-slow-if-used-often approach to simulate getElementById eg. on XML docs. I think you could just change this: if ( m[1] == # ) {