'Default', 'loose' => 'Loose DOM Fragment', 'xml' => 'XML Document');
$special = '';
if (isset($_REQUEST['special'])) {
if (array_key_exists($_REQUEST['special'], $special_list)) {
$special = $_REQUEST['special'];
} else {
$valid = false;
}
}
$css_list = array('' => 'Default', 'simple' => 'Simple', 'extended' => 'Extended', 'yahoo' => 'Yahoo (via ejohn)', 'crazy' => 'Just crazy');
$css = '';
if (isset($_REQUEST['css'])) {
if (array_key_exists($_REQUEST['css'], $css_list)) {
$css = $_REQUEST['css'];
} else {
$valid = false;
}
}
if (!$valid) {
header('Location: ' . $_SERVER['SCRIPT_NAME']);
exit;
}
$link = $_SERVER['SCRIPT_NAME'];
if (!$valid) {
header('Location: ' . $link);
exit;
}
if ($css || $special) {
$build = array();
if ($css) $build['css'] = $css;
if ($special) $build['special'] = $special;
$link = $link . '?' . http_build_query($build, '', '&');
}
if (count($_POST)) {
header('Location: ' . $link);
exit;
}
$file = 'selectors.list.css';
if ($css) $file = 'selectors.list.' . $css . '.css';
$selectors = file_get_contents($file);
?>
SlickSpeed Selectors Test
$properties){
$time = time();
$query = http_build_query(array(
'include' => $properties['file'],
'function' => $properties['function'],
'initialize' => isset($properties['initialize']) ? $properties['initialize'] : '',
'special' => $special,
'css' => $css,
'nocache' => $time
), '', '&');
echo '
';
}
?>
selectors |
$properties){
echo "$framework | ";
}
?>
";
$selector = str_replace('%', '', $selector);
echo "$selector | ";
foreach ($frameworks as $framework){
echo " | ";
}
echo "";
}
?>
Legend
the faster |
the slower |
exception thrown or zero elements found |
different returned elements |
|
|
|
|
SlickSpeed Selectors Test
$properties){
$include = $properties['file'];
$function = $properties['function'];
$time = time();
echo "
\n\n";
}
?>
selectors |
$properties){
echo "$framework | ";
}
?>
";
$selector = str_replace('%', '', $selector);
echo "$selector | ";
foreach ($frameworks as $framework){
echo " | ";
}
echo "";
}
?>
Legend
the faster |
the slower |
exception thrown or zero elements found |
different returned elements |
|
|
|
|
*/
?>