3 ms·
so, what's the better solution to detect devices that work in weird, incompatible ways (like safari/ios lying about the vh)
by LoSboccacc 9y ago
so, what's the better solution to detect devices that work in weird, incompatible ways (like safari/ios lying about the vh)
- zaarn 9y agoAs mentioned, it's the solution that works but everyone regrets working. Lying about the VH is violating standards and should be handled as such. An electrician does not think "but what if the customer suddenly changes their house voltage from 210V to 123V" but rather "anybody doing that is insane and I'm not going to be responsible if they do that". The fact that we have to do this is a testament to how bad the standards situation has been in the past and still is. The proper way would be to have one function that every browser supports and which you can ask about such specifics. Writing browser.is-doing("vh-lying") instead of having to work around the idiocracy of the browser in other ways is inarguably better.