On Jan 27, 4:46 pm, Diego Perini <diego.per...@gmail.com> wrote: > Juriy, > we agreed that if we can write something in the DOM everybody else can > delete/overwrite it and fold our testing.
This is not a context of code "folding" (as you put it). We can do many bad things in many environments - the following assignment, for example, will certainly "fool" my previous test: window.alert = { call: undefined, set x(){ throw new Error() } } but not only does it require support for setters, it also takes an actual effort on someone's part to just go ahead and "break" it on purpose. `document.fileSize`, on the other hand, requires little effort to overwrite, and, as I showed earlier, only takes one careless form naming. -- kangax --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---