year 2000? year 2038? version X!
May. 17th, 2009 08:40 pmОчень много веб-сайтов определяют Opera/10 как… Opera/1 :)
>> we're the first browser ever to release with a two-digit version number.
>> If websites assume that version numbers always have a one-letter "major"
>> part and look for a single digit, they are going to "detect" Opera 1!
* /Opera[\/ ][1-6]/ -> "Version is too low" but it matches "Opera 10"
* UA.chatAt(6) > 6 -> "Version is high enough" but it fails to match "Opera 10", "Opera X", "Opera A".
* UA.substring(6,7) > 6 -> "Version is high enough" but it fails to match "Opera 10", "Opera X", "Opera A".
Чуть попозже подтянется IE 10. Flash 10 в эту проблему тоже в своё время вступил.
no subject
Date: 2009-05-17 08:48 pm (UTC)