[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] WebGL 0.92



On Thu, Jan 30, 2014 at 10:03 AM, Dean Jackson <dino@apple.com> wrote:
We also have to be careful that this information doesn't become a UA-like string. i.e used for feature detection. That's why I think it should be specified - so that we all implement it the same way. 

I'm not concerned about feature inference from an opaque string per-se. Unless you can detect the features working and the ones not, then that's the only thing you can do. I'm concerned about two things:

1) This being unspecified, so it's necessarily fuzzy, which is bad for developers. 

2) Code like this:

if(version.indexOf('0.92') != -1) // IE 11 2013-ish
{ ... }
if(version.indexOf('0.93') != -1) // IE 11 2014
{ ... }
if(version.indexOf('0.94') != -1) // IE 11 Service Pack 2
{ ... }
if(version.indexOf('0.94') != -1) // IE 12
{ ... }
if(version.indexOf('0.95') != -1) // IE 12 rev B
{ ... }
else if(version.indexOf('1.0') != -1) // Not IE
{ ... }

and so forth.