Re: [WSG] A simple IE and JS detection method?

2010-11-01 Thread G.Sørtun
On 02.11.2010 04:48, Thierry Koblentz wrote: Using the basic filters you could go this route: http://tjkdesign.com/lab/ie-filters.asp ...which are similar to those I presented earlier ... without all the "safeguarding" and wrapping i use to keep uninformed people from using such hacks all ove

RE: [WSG] A simple IE and JS detection method?

2010-11-01 Thread Thierry Koblentz
> >>> How, without using conditional comments at all, do I target IE > >>> 6,7, and 8 > > > >> I was asking how I'd be able to target all three *without* any > >> CCs. Using the basic filters you could go this route: http://tjkdesign.com/lab/ie-filters.asp For version 9+, nothing's sure ;-) -- R

Re: [WSG] A simple IE and JS detection method?

2010-11-01 Thread David Hucklesby
On 11/1/10 3:15 AM, Foskett, Mike wrote: Hi David, How, without using conditional comments at all, do I target IE 6,7, and 8 I was asking how I'd be able to target all three *without* any CCs. Add an extra script line? /*

RE: [WSG] A simple IE and JS detection method?

2010-11-01 Thread Thierry Koblentz
> > > >> On the second pahe I've checked > >> (http://www.projectseven.com/products/menusystems/pmm2/index.htm), I > found > >> these: > >> > >> > >> > >> > >> These are three extra HTTP requests. > > Just so everyone is clear, this is only _one_ extra request, and only > for that particular

RE: [WSG] A simple IE and JS detection method?

2010-11-01 Thread Jan
> > >Regards > >Mike Foskett >http://websemantics.co.uk/ > > > > > >-Original Message- >From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On >Behalf Of David Hucklesby >Sent: 29 October 2010 16:51 >To: wsg@webstandards

RE: [WSG] A simple IE and JS detection method?

2010-11-01 Thread Foskett, Mike
me if the button doesn't degrade well. I considered the methods too clunky for use in production though. Regards Mike Foskett http://websemantics.co.uk/ -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of David Hucklesby Sen

RE: [WSG] A simple IE and JS detection method?

2010-11-01 Thread michael.brockington
-Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Thierry Koblentz Sent: 30 October 2010 20:30 To: wsg@webstandardsgroup.org Subject: RE: [WSG] A simple IE and JS detection method? >> On the second pahe I've check

Re: [WSG] A simple IE and JS detection method?

2010-10-30 Thread Al Sparber
On 10/30/2010 3:29 PM, Thierry Koblentz wrote: Add more complexity? Really? I can always remember the syntax for the two or three CSS filters I use, while I'm never 100% sure how to properly write CCs. I simply expressed an opinion, as you did. Readers can choose to agree or disagree with ei

RE: [WSG] A simple IE and JS detection method?

2010-10-30 Thread Thierry Koblentz
> > Thank you, Georg. Your valuable comments in that file actually > convinced > > me to stay with the "Paul Irish CCs" method. It just seems safer, as > > well as relatively easy to understand. After all, this: > > > > .ie8 .hacked-element {...} > > > > seems to me clearer than > > > > @media all

Re: [WSG] A simple IE and JS detection method?

2010-10-30 Thread Al Sparber
On 10/30/2010 11:58 AM, David Hucklesby wrote: On 10/29/10 3:22 PM, "G.Sørtun" wrote: On 29.10.2010 23:33, David Hucklesby wrote: Perhaps you know of a browser-safe filter for IE8? Don't know about safe, but maybe you can find what you need here...

Re: [WSG] A simple IE and JS detection method?

2010-10-30 Thread David Hucklesby
On 10/29/10 3:22 PM, "G.Sørtun" wrote: On 29.10.2010 23:33, David Hucklesby wrote: Perhaps you know of a browser-safe filter for IE8? Don't know about safe, but maybe you can find what you need here... Thank you, Georg. Your valuabl

Re: [WSG] A simple IE and JS detection method?

2010-10-29 Thread G.Sørtun
On 29.10.2010 23:33, David Hucklesby wrote: Perhaps you know of a browser-safe filter for IE8? Don't know about safe, but maybe you can find what you need here... regards Georg ***

Re: [WSG] A simple IE and JS detection method?

2010-10-29 Thread David Hucklesby
On 10/29/10 12:05 PM, Thierry Koblentz wrote: goes against the separation of the three layers No it doesn't, it's purely presentational. No better or worse than imho, CCs have nothing to do with the presentational layer, they are part of the structural layer and they are junk markup if you a

RE: [WSG] A simple IE and JS detection method?

2010-10-29 Thread Thierry Koblentz
>> goes against the separation of the three layers > No it doesn't, it's purely presentational. > No better or worse than imho, CCs have nothing to do with the presentational layer, they are part of the structural layer and they are junk markup if you ask me :) -- Regards, Thierry www.tjkdesign

Re: [WSG] A simple IE and JS detection method?

2010-10-29 Thread David Hucklesby
On 10/29/10 2:13 AM, Foskett, Mike wrote: [...] David, How, without using conditional comments at all, do I target IE 6,7, and 8 From the example: bg {background: #fff} .IE6 bg, .IE7 bg { filter: progid: etc...} .IE8 bg { -ms-filter:" progid: etc"} Precisely. I was asking how I'd be ab

Re: [WSG] A simple IE and JS detection method?

2010-10-29 Thread cat soul
why did I get this set of 5 replies to this thread 12 times? did any body else get it 12 times, too? cs *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscri

RE: [WSG] A simple IE and JS detection method?

2010-10-29 Thread Foskett, Mike
Thanks David, My impression that it's valid to add a class to the html element was true. I know that you should not actually apply a style to it though. Hi Kurtis, > I think that it's positively Byzantine. > Why do you need or want to do this? I manage, create and update hundreds of unique

Re: [WSG] A simple IE and JS detection method?

2010-10-29 Thread Mathew Robertson
On 29 October 2010 20:01, David Dorward wrote: > > On 29 Oct 2010, at 09:49, Mathew Robertson wrote: > > > Browsers support expando elements (aka, you can bind properties into the > DOM object), so adding a "class" attribute is valid > > Valid has a specific technical meaning when dealing with SG

Re: [WSG] A simple IE and JS detection method?

2010-10-29 Thread David Dorward
On 29 Oct 2010, at 09:49, Mathew Robertson wrote: > Browsers support expando elements (aka, you can bind properties into the DOM > object), so adding a "class" attribute is valid Valid has a specific technical meaning when dealing with SGML and XML. "What browsers supports" isn't it. -- Dav

Re: [WSG] A simple IE and JS detection method?

2010-10-29 Thread Mathew Robertson
On 29 October 2010 16:21, David Hucklesby wrote: > On 10/28/10 5:25 PM, Mathew Robertson wrote: > >> I'll stick my neck out and say... dont do it for the CSS bit... >> specifically, you should be asking -> What is the point of adding a >> specific class to html/body for a specific browser? In pa

Re: [WSG] A simple IE and JS detection method?

2010-10-29 Thread Mathew Robertson
On 29 October 2010 16:56, David Dorward wrote: > > On 28 Oct 2010, at 17:31, Foskett, Mike wrote: > > Since querying here I've had difficulty validating code with a class on > the html element. > Am I incorrect in the belief that it should actually be valid? > > > The class

Re: [WSG] A simple IE and JS detection method?

2010-10-28 Thread David Dorward
On 28 Oct 2010, at 17:31, Foskett, Mike wrote: > Since querying here I've had difficulty validating code with a class on the > html element. > Am I incorrect in the belief that it should actually be valid? The class attribute, in the latest, stable version of HTML is available for All element

RE: [WSG] A simple IE and JS detection method?

2010-10-28 Thread Thierry Koblentz
> It must've come from that article, it looks vaguely familiar. > Personally I saw it as a furtherance to the hasJS technique. > My perspective was to remove separate style sheets, and obscure hacks, purely > to simplify editing exactly as Paul Irish's > article states. > Without using * html and

Re: [WSG] A simple IE and JS detection method?

2010-10-28 Thread David Hucklesby
On 10/28/10 5:25 PM, Mathew Robertson wrote: I'll stick my neck out and say... dont do it for the CSS bit... specifically, you should be asking -> What is the point of adding a specific class to html/body for a specific browser? In particular, using this technique discourages the whole "graceful

Re: [WSG] A simple IE and JS detection method?

2010-10-28 Thread Mathew Robertson
I'll stick my neck out and say... dont do it for the CSS bit... specifically, you should be asking -> What is the point of adding a specific class to html/body for a specific browser? In particular, using this technique discourages the whole "graceful degradation" thing. And it adds complexity to

Re: [WSG] A simple IE and JS detection method?

2010-10-28 Thread Hassan Schroeder
On 10/28/10 9:31 AM, Foskett, Mike wrote: Since querying here I've had difficulty validating code with a class on the html element. Am I incorrect in the belief that it should actually be valid? Yes, you're incorrect. :-) Which could have been quickly answered by reading the recommendation.

RE: [WSG] A simple IE and JS detection method?

2010-10-28 Thread Foskett, Mike
] On Behalf Of Ty Hatch Sent: 28 October 2010 16:15 To: wsg@webstandardsgroup.org Subject: Re: [WSG] A simple IE and JS detection method? Take it you pulled this from HTML5 Boilerplate's latest update. Reading through Paul Irish's comments on the update (http://paulirish.com/2008/condi

RE: [WSG] A simple IE and JS detection method?

2010-10-28 Thread Grant Bailey
ginal Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Foskett, Mike Sent: Friday, 29 October 2010 12:22 AM To: wsg@webstandardsgroup.org Subject: [WSG] A simple IE and JS detection method? Hi All, I was wondering if you had a little time to co

Re: [WSG] A simple IE and JS detection method?

2010-10-28 Thread Kevin Rapley
Mike, You might find it easier to use the Modernizr script to detect JavaScript (amongst other tests it runs to see the capabilities of a browser) and then apply a similar method to what you have described here, but on the body tag instead. Modernizr replaces the c

Re: [WSG] A simple IE and JS detection method?

2010-10-28 Thread Ty Hatch
Take it you pulled this from HTML5 Boilerplate's latest update. Reading through Paul Irish's comments on the update ( http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/) the change makes sense. On Thu, Oct 28, 2010 at 7:21 AM, Foskett, Mike wrote: > Hi All, > > > > I

[WSG] A simple IE and JS detection method?

2010-10-28 Thread Foskett, Mike
Hi All, I was wondering if you had a little time to comment on the following technique? http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> /**/ ... yada ... body {background:#ccc; color:#000}