E-mail List Archives
Re: Hidden text and mobile devices
From: Patrick H. Lauke
Date: Aug 25, 2016 8:28AM
- Next message: Weissenberger, Todd M: "Re: ARIA Attributes Affecting Page Load?"
- Previous message: Lovely, Brian (CONT): "Re: ARIA Attributes Affecting Page Load?"
- Next message in Thread: None
- Previous message in Thread: Jamous, JP: "Re: Hidden text and mobile devices"
- View all messages in this Thread
On 25/08/2016 14:02, Jamous, JP wrote:
> Not touch screen. Rather screen resolution.
Don't try to guess one thing by testing another thing. Checking screen
resolution will only give you hints about screen resolution. It tells
you nothing else (does it have a touchscreen? Or is it a small-screen
device with a built-in trackball, or external mouse, or...). The rest is
all inferred, which will eventually lead to false positives/negatives.
> Check out the .NET framework and look under System.Web.Pages.Request.Browser. You will see what I am referring to right there. There is an array of things to capture.
>
> If OS == "iOS" && ScreenSize => "1024X768" Then
> It is an iPad and not an iPhone.
Once you get into browser sniffing like this, you're setting yourself up
for continuously adding more tests as new browsers/devices come along,
and you still risk false positives/negatives.
https://www.google.co.uk/search?q=browser%20sniffing
P
--
Patrick H. Lauke
www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke
- Next message: Weissenberger, Todd M: "Re: ARIA Attributes Affecting Page Load?"
- Previous message: Lovely, Brian (CONT): "Re: ARIA Attributes Affecting Page Load?"
- Next message in Thread: None
- Previous message in Thread: Jamous, JP: "Re: Hidden text and mobile devices"
- View all messages in this Thread