You appear to be a bot. Output may be restricted
Description
Determine if the browser is the W3C Validator or not (last updated 1.7)
Usage
$boolean = Browser::checkBrowserW3CValidator();
Parameters
Returns
boolean True if the browser is the W3C Validator otherwise false
Source
File name: easy-digital-downloads/includes/libraries/browser.php
Lines:
1 to 18 of 18
function checkBrowserW3CValidator() { if ( stripos( $this->_agent, 'W3C-checklink' ) !== false ) { $aresult = explode( '/', stristr( $this->_agent, 'W3C-checklink' ) ); $aversion = explode( ' ', $aresult[1] ); $this->setVersion( $aversion[0] ); $this->_browser_name = $this->BROWSER_W3CVALIDATOR; return true; } else if ( stripos( $this->_agent, 'W3C_Validator' ) !== false ) { // Some of the Validator versions do not delineate w/ a slash - add it back in $ua = str_replace( "W3C_Validator ", "W3C_Validator/", $this->_agent ); $aresult = explode( '/', stristr( $ua, 'W3C_Validator' ) ); $aversion = explode( ' ', $aresult[1] ); $this->setVersion( $aversion[0] ); $this->_browser_name = $this->BROWSER_W3CVALIDATOR; return true; } return false; }