Juriy,
I really hope you had a look at feature testing in my new NWMatcher
code, so I hope you don't think of me as unmovable stone...

I removed the "document.fileSize" the second time we talked about
it...to avoid being blamed...

Still I needed a place to complain about my code size growing too much
after switching to FT and was trying to give a place to these old
tricks.

The more complex is the library / framework the more is worth
switching to FT, my project is too small generally to add 1Kb extra
just for that, but I did it anyway.

I am overall happy with the switch because now I do support more
browsers and faster too. The size...well we have compressors (5Kb).

Diego


On 27 Gen, 23:51, kangax <kan...@gmail.com> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to