Differences Between Safari Mobile and Desktop
July 7, 2012
It's interesting to note the differences between the window object in the mobile and desktop versions of the Safari browser. Some things make sense (e.g., touch events) but others are fairly cryptic.
Mobile Safari only
canSetSearchEngine: <CanSetSearchEngineScriptObject: 0x1dd22ee0>
DeviceMotionEvent: DeviceMotionEventConstructor
DeviceOrientationEvent: DeviceOrientationEventConstructor
getSearchEngine: <GetSearchEngineScriptObject: 0x1ed83360>
ondevicemotion: null
ondeviceorientation: null
ongesturechange: null
ongestureend: null
ongesturestart: null
onorientationchange: null
ontouchcancel: null
ontouchend: null
ontouchmove: null
ontouchstart: null
orientation: 0
setSearchEngine: <SetSearchEngineScriptObject: 0x1ddf03a0>
Touch: TouchConstructor
TouchEvent: TouchEventConstructor
TouchList: TouchListConstructor
WebKitCSSRegionRule: WebKitCSSRegionRuleConstructor
Desktop Safari only
HTMLMeterElement: HTMLMeterElementConstructor
HTMLProgressElement: HTMLProgressElementConstructor
HTMLTrackElement: HTMLTrackElementConstructor
Notification: NotificationConstructor
TextTrack: TextTrackConstructor
TextTrackCue: TextTrackCueConstructor
TextTrackCueList: TextTrackCueListConstructor
TextTrackList: TextTrackListConstructor
TrackEvent: TrackEventConstructor
webkitNotifications: NotificationCenter

