"should be" is out of my control. -=Randy
On Sep 15, 2007, at 2:30 PM, August Trometer <[EMAIL PROTECTED]> wrote: > > I'm going to have to respectfully disagree here...to a point. > > It simply comes down to what you're trying to test for. > > If you're looking for an instance of Mobile Safari, regardless of > device, then using my method is the best way. In fact, I think in most > cases, this _should_ be what you're testing for, as Apple is most > likely to keep various versions of Safari in lock-step across devices. > Sure, they might have different build numbers, but they should be, > capability-wise, so similar you won't know the difference. > > If you want to know the width of the device, for example, that's a > completely separate test. To test for the width of the viewport (i.e. > window.innerWidth) is much better than to test for the name of a > device. It's highly likely that a new iPhone might have a higher > resolution and, therefore, a different viewport width. The product > name, however, will stay the same. Testing for the string "iPhone" > doesn't tell you anything except the name of the device. > > The only reason I can see for testing against device name is to > determine if it can do something in particular (which is problematic > as those capabilities can and will change while the device name will > not). Using the tel: links for phone numbers obviously won't work on > an iPod touch, so testing for "iPod" is a decent solution here. (I > haven't tried it on the iPod touch, but I suspect Apple filters those > links out. If they don't, they should.) > > Here's my point: if you're building a web app for the iPhone, you're > really not developing it for "the iPhone." In actuality, you're > developing it for Mobile Safari which Apple is clearly willing to put > on multiple devices. > > August > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
