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
Hi Ty, 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 *+ht

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

2010-10-28 Thread Grant Bailey
Mike, I like it. You have styled the element as an example. Would you need to style every element in the document using this technique, or would inheritance deal with the other elements? Sorry if the answer is obvious but I'm not a JavaScript guru ... Regards, Grant Bailey -Original

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}