Class: browser
Browser sniffing is bad - I know!
But sometimes this class is very helpful to
react on certain browsers and build browser-specific
css selectors for example. It's up to you to use it.
Methods
-
browser::css
Returns a browser-specific css selector string
-
browser::detect
The core detection method, which parses the user agent string
-
browser::engine
Returns the browser engine
-
browser::ios
Checks if the user agent string is from an iOS device
-
browser::iphone
Checks if the user agent string is from an iPhone
-
browser::mobile
Checks if the user agent string is from a mobile device
-
browser::name
Returns the name of the browser
-
browser::platform
Returns the platform
-
browser::version
Returns the browser version