Daniel,
I am not advocating against conditional comments, as I am not against
any of the techniques described here, I said I use them all were I see
appropriate.

The argument of other browser implementing CC was just an example,
since somebody asked what is going to happen when other browsers will
implement the "document.fileSize" property to fold my test, every
check in a browser can be "folded" but I am not trying to protect my
code from that, I am just trying to recognize a browser, if the makers
of those browse do not want to be recognized they have a ton of way to
be successful. I bet they are looking at other features than breaking
my scripts.

Diego


On 27 Gen, 20:09, Daniel Friesen <nadir.seen.f...@gmail.com> wrote:
> That sounds like a very weak argument against use of conditional
> comments. More like a misunderstanding of them.
> By definition of conditional comments, even if every other browser
> decided to implement them the existing tests still wouldn't change.
> Conditional comments work using conditions. So even if Firefox decided
> to add conditional comment support, only conditional comments targeted
> at Firefox would be run, all those still targeted at IE will still be
> strictly for that same set.
> Unlike the useragent which is known for browsers to purposefully lie
> about what they are, after all just about every browser has been
> pretending to be Netscape Navigator nearly forever. Opera disguises
> itself as IE by default, and even Konqueror lets you completely
> customize the entire user agent string.
> Despite whatever the user agent says, conditional comments will not lie.
> If a browser tried to do that it would likely go and break itself on a
> large number of websites already using conditional comments to apply IE
> fixes. And that's the opposite of any reason browsers have decided to
> spoof things.
>
> ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com]
> -Nadir-Point (http://nadir-point.com)
> -Wiki-Tools (http://wiki-tools.com)
> -MonkeyScript (http://monkeyscript.nadir-point.com)
> -Animepedia (http://anime.wikia.com)
> -Narutopedia (http://naruto.wikia.com)
> -Soul Eater Wiki (http://souleater.wikia.com)
>
> Diego Perini wrote:
> > Juriy,
> > ...
> > One "span" element with an id="length" will do much more damages to
> > every existing framework/library, and there are tons of properties
> > that can be overwritten. Should we also hope no other browser
> > implements conditional comments ?
>
> > Are you interested in how much a test is "foldable" or how good it is
> > into recognize if the browser is IE ?
>
> > First case you win, second case I win.
>
> > ...
--~--~---------~--~----~------------~-------~--~----~
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