4 ms·
> If you want, you can serve 2.0 to newer browsers and 1.9 to older ones using our conditional comment trick I'm really surprised they would suggest doing thi
by laurent123456 14y ago
> If you want, you can serve 2.0 to newer browsers and 1.9 to older ones using our conditional comment trick
I'm really surprised they would suggest doing this. The two APIs are quite different since many functions from the 1.x branch have been removed in the 2.x or sometime behave differently (for instance `$("some <strong>bold</strong> text")` will be parsed as HTML in 1.x but considered a CSS selector in 2.x).
Basically, I really wonder what could be the benefit of using this kind of conditional comment trick.
- Skalman 14y agoIt'll be parsed as HTML in 1.8, but it's a CSS selector in 1.9.
- curiousdannii 14y agoIf you can find a case where 1.9 and 2.0 have different APIs, file it as a bug!