[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1
On 13 Jun, 13:57, Mislav Marohnić [EMAIL PROTECTED] wrote: Can you try frames[myIframe].document.body? Thanks, I tried, but it gave the same result. One thing that is strange, is that when I try to get elements with selectors like table or .class1 it works perfectly! It is just the ids (#id) that don't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1
On 6/13/07, Jostein [EMAIL PROTECTED] wrote: One thing that is strange, is that when I try to get elements with selectors like table or .class1 it works perfectly! It is just the ids (#id) that don't work. OK, so here is what you do now. Check out the latest trunk and try with it. If it still fails, figure out is the problem related to the fact you're doing cross-frame scripting. Can you make the selector fail by querying the document inside the document itself? After playing around with this, open up a new ticket for this bug. Post your minimal failing case (your 2 HTML documents with everything irrelevant stripped out) and write exact queries that fail and those that pass. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1
On 6/13/07, Marius Feraru [EMAIL PROTECTED] wrote: [ Seeing you mentioned myIframe (+ the reference to a document property), I'm assuming you're really talking about IFRAMEs, i.e. the HTML element ]. Why would anyone expect to be able to reach other folks' documents? ;-) It's ugly enough that the child IFRAME has access to the parent, now you want it both ways? :)) Marius, cross-frame scripting is perfectly harmless. Browsers enforce the same-domain policy with frames, too, so you can't mess around with documents in other frames that don't belong to your site. But when they do, being able to mess around with them is sometimes what web apps build on. Ever used GMail? It's a frameset. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1
On 6/13/07, Marius Feraru [EMAIL PROTECTED] wrote: Neither Gecko 1.8 nor 1.9 are able to get the content of #myIframe. $('myIframe').contentDocument.body That is W3C standard. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mislav Marohnić wrote: $('myIframe').contentDocument.body That is W3C standard. QED: I'm obsolete. :o) Thanks (again) a million, Mislav. :) - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFGcA49tZHp/AYZiNkRAm+vAJ9fK/M/toCXmX7p4zuvZgMAVCvHrQCfaSIK Sav2bCvMIeiiZI32PO7fFvU= =AvGC -END PGP SIGNATURE- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---