Most html5 features rely on 'xxx' in window for feature detection. There's a caveat here though, since window.xxx form won't work ::

> 'ontouchstart' in window
true
> window.ontouchstart
null