Replaced obsolete mime types

This commit is contained in:
assertchris 2016-01-24 18:12:45 +13:00
parent 612772728e
commit c66f973fce
12 changed files with 33 additions and 33 deletions

View File

@ -244,7 +244,7 @@ class SS_HTTPResponse {
echo <<<EOT echo <<<EOT
<p>Redirecting to <a href="{$urlATT}" title="Click this link if your browser does not redirect you">{$title}</a></p> <p>Redirecting to <a href="{$urlATT}" title="Click this link if your browser does not redirect you">{$title}</a></p>
<meta http-equiv="refresh" content="1; url={$urlATT}" /> <meta http-equiv="refresh" content="1; url={$urlATT}" />
<script type="text/javascript">setTimeout(function(){ <script type="application/javascript">setTimeout(function(){
window.location.href = "{$urlJS}"; window.location.href = "{$urlJS}";
}, 50);</script>"; }, 50);</script>";
EOT EOT

View File

@ -12,9 +12,9 @@
* <title>jQuery - Validation Test Suite</title> * <title>jQuery - Validation Test Suite</title>
* <link rel="Stylesheet" media="screen" * <link rel="Stylesheet" media="screen"
* href="thirdparty/jquery-validate/test/qunit/qunit.css" /> * href="thirdparty/jquery-validate/test/qunit/qunit.css" />
* <script type="text/javascript" * <script type="application/javascript"
* src="thirdparty/jquery-validate/lib/jquery.js"></script> * src="thirdparty/jquery-validate/lib/jquery.js"></script>
* <script type="text/javascript" * <script type="application/javascript"
* src="thirdparty/jquery-validate/test/qunit/qunit.js"></script> * src="thirdparty/jquery-validate/test/qunit/qunit.js"></script>
* <script> * <script>
* $(document).ready(function(){ * $(document).ready(function(){

View File

@ -6,8 +6,8 @@
<head> <head>
<title>SilverStripe CMS / Framework Installation</title> <title>SilverStripe CMS / Framework Installation</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta http-equiv="Content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="<?php echo FRAMEWORK_NAME; ?>/thirdparty/jquery/jquery.js"></script> <script type="application/javascript" src="<?php echo FRAMEWORK_NAME; ?>/thirdparty/jquery/jquery.js"></script>
<script type="text/javascript" src="<?php echo FRAMEWORK_NAME; ?>/dev/install/install.js"></script> <script type="application/javascript" src="<?php echo FRAMEWORK_NAME; ?>/dev/install/install.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo FRAMEWORK_NAME; ?>/dev/install/css/install.css"> <link rel="stylesheet" type="text/css" href="<?php echo FRAMEWORK_NAME; ?>/dev/install/css/install.css">
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
</head> </head>

View File

@ -16,7 +16,7 @@ The first thing to do is include the appropriate JavaScript and CSS files:
<code html> <code html>
<link rel="stylesheet" type="text/css" media="all" href="tree.css" /> <link rel="stylesheet" type="text/css" media="all" href="tree.css" />
<script type="text/javascript" src="tree.js"></script> <script type="application/javascript" src="tree.js"></script>
</code> </code>
Then, create the HTML for you tree. This is basically a nested set of bullet pointed links. The "tree" class at the top is what the script will look for. Note that you can make a tree node closed to begin with by adding `class="closed"`. Then, create the HTML for you tree. This is basically a nested set of bullet pointed links. The "tree" class at the top is what the script will look for. Note that you can make a tree node closed to begin with by adding `class="closed"`.

View File

@ -137,7 +137,7 @@ class CMSMemberLoginForm extends LoginForm {
<!DOCTYPE html> <!DOCTYPE html>
<html><body> <html><body>
$message $message
<script type="text/javascript"> <script type="application/javascript">
setTimeout(function(){top.location.href = "$changePasswordURLJS";}, 0); setTimeout(function(){top.location.href = "$changePasswordURLJS";}, 0);
</script> </script>
</body></html> </body></html>

View File

@ -115,7 +115,7 @@ class CMSSecurity extends Security {
<!DOCTYPE html> <!DOCTYPE html>
<html><body> <html><body>
$message $message
<script type="text/javascript"> <script type="application/javascript">
setTimeout(function(){top.location.href = "$loginURLJS";}, 0); setTimeout(function(){top.location.href = "$loginURLJS";}, 0);
</script> </script>
</body></html> </body></html>

View File

@ -52,7 +52,7 @@ class ConvertTest extends SapphireTest {
$this->assertEquals('This has a *strong tag with attributes*.', Convert::html2raw($val2), $this->assertEquals('This has a *strong tag with attributes*.', Convert::html2raw($val2),
'Strong tags with attributes are replaced with asterisks'); 'Strong tags with attributes are replaced with asterisks');
$val3 = '<script type="text/javascript">Some really nasty javascript here</script>'; $val3 = '<script type="application/javascript">Some really nasty javascript here</script>';
$this->assertEquals('', Convert::html2raw($val3), $this->assertEquals('', Convert::html2raw($val3),
'Script tags are completely removed'); 'Script tags are completely removed');
@ -60,7 +60,7 @@ class ConvertTest extends SapphireTest {
$this->assertEquals('', Convert::html2raw($val4), $this->assertEquals('', Convert::html2raw($val4),
'Style tags are completely removed'); 'Style tags are completely removed');
$val5 = '<script type="text/javascript">Some really nasty $val5 = '<script type="application/javascript">Some really nasty
multiline javascript here</script>'; multiline javascript here</script>';
$this->assertEquals('', Convert::html2raw($val5), $this->assertEquals('', Convert::html2raw($val5),
'Multiline script tags are completely removed'); 'Multiline script tags are completely removed');

View File

@ -457,7 +457,7 @@ class RequirementsTest extends SapphireTest {
$backend->javascript($src); $backend->javascript($src);
$html = $backend->includeInHTML(false, $template); $html = $backend->includeInHTML(false, $template);
$this->assertEquals('<html><head></head><body><!--<script>alert("commented out");</script>-->' $this->assertEquals('<html><head></head><body><!--<script>alert("commented out");</script>-->'
. '<h1>more content</h1><script type="text/javascript" src="' . $urlSrc . '"></script></body></html>', $html); . '<h1>more content</h1><script type="application/javascript" src="' . $urlSrc . '"></script></body></html>', $html);
} }
public function testForceJsToBottom() { public function testForceJsToBottom() {
@ -470,12 +470,12 @@ class RequirementsTest extends SapphireTest {
$template = '<html><head></head><body><header>My header</header><p>Body<script></script></p></body></html>'; $template = '<html><head></head><body><header>My header</header><p>Body<script></script></p></body></html>';
// The expected outputs // The expected outputs
$JsInHead = "<html><head><script type=\"text/javascript\" src=\"http://www.mydomain.com/test.js\">" $JsInHead = "<html><head><script type=\"application/javascript\" src=\"http://www.mydomain.com/test.js\">"
. "</script>\n</head><body><header>My header</header><p>Body<script></script></p></body></html>"; . "</script>\n</head><body><header>My header</header><p>Body<script></script></p></body></html>";
$JsInBody = "<html><head></head><body><header>My header</header><p>Body<script type=\"text/javascript\"" $JsInBody = "<html><head></head><body><header>My header</header><p>Body<script type=\"application/javascript\""
. " src=\"http://www.mydomain.com/test.js\"></script><script></script></p></body></html>"; . " src=\"http://www.mydomain.com/test.js\"></script><script></script></p></body></html>";
$JsAtEnd = "<html><head></head><body><header>My header</header><p>Body<script></script></p><script " $JsAtEnd = "<html><head></head><body><header>My header</header><p>Body<script></script></p><script "
. "type=\"text/javascript\" src=\"http://www.mydomain.com/test.js\"></script></body></html>"; . "type=\"application/javascript\" src=\"http://www.mydomain.com/test.js\"></script></body></html>";
// Test if the script is before the head tag, not before the body. // Test if the script is before the head tag, not before the body.

View File

@ -4,25 +4,25 @@
<head> <head>
<title>Jasmine Test Runner</title> <title>Jasmine Test Runner</title>
<link rel="stylesheet" type="text/css" href="../../../thirdparty/jasmine/lib/jasmine.css"> <link rel="stylesheet" type="text/css" href="../../../thirdparty/jasmine/lib/jasmine.css">
<script type="text/javascript" src="../../../thirdparty/jasmine/lib/jasmine.js"></script> <script type="application/javascript" src="../../../thirdparty/jasmine/lib/jasmine.js"></script>
<script type="text/javascript" src="../../../thirdparty/jasmine/lib/jasmine-html.js"></script> <script type="application/javascript" src="../../../thirdparty/jasmine/lib/jasmine-html.js"></script>
<script type="text/javascript" src="../../../thirdparty/jasmine-jquery/lib/jasmine-jquery.js"></script> <script type="application/javascript" src="../../../thirdparty/jasmine-jquery/lib/jasmine-jquery.js"></script>
<script type="text/javascript" src="../../../thirdparty/jasmine-dom/lib/jasmine-dom-fixtures.js"></script> <script type="application/javascript" src="../../../thirdparty/jasmine-dom/lib/jasmine-dom-fixtures.js"></script>
<script type="text/javascript" src="../../../thirdparty/jasmine-ajax/lib/mock-ajax.js"></script> <script type="application/javascript" src="../../../thirdparty/jasmine-ajax/lib/mock-ajax.js"></script>
<script type="text/javascript" src="../../../thirdparty/jasmine-ajax/lib/spec-helper.js"></script> <script type="application/javascript" src="../../../thirdparty/jasmine-ajax/lib/spec-helper.js"></script>
<style type="text/css" href="../../../thirdparty/jstree/themes/default/style.css"></style> <style type="text/css" href="../../../thirdparty/jstree/themes/default/style.css"></style>
<style type="text/css" href="../../../css/TreeDropdownField.css"></style> <style type="text/css" href="../../../css/TreeDropdownField.css"></style>
<script type="text/javascript" src="../../../thirdparty/jquery/jquery.js"></script> <script type="application/javascript" src="../../../thirdparty/jquery/jquery.js"></script>
<script type="text/javascript" src="../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js"></script> <script type="application/javascript" src="../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js"></script>
<script type="text/javascript" src="../../../thirdparty/jstree/jquery.jstree.js"></script> <script type="application/javascript" src="../../../thirdparty/jstree/jquery.jstree.js"></script>
<script type="text/javascript" src="../../../javascript/TreeDropdownField.js"></script> <script type="application/javascript" src="../../../javascript/TreeDropdownField.js"></script>
<script type="text/javascript" src="TreeDropdownField.js"></script> <script type="application/javascript" src="TreeDropdownField.js"></script>
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="application/javascript">
jasmine.getEnv().addReporter(new jasmine.TrivialReporter()); jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute(); jasmine.getEnv().execute();
</script> </script>

View File

@ -5,10 +5,10 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- This is the minimal jasmin libraries needed --> <!-- This is the minimal jasmin libraries needed -->
<link rel="stylesheet" type="text/css" href="../../../thirdparty/jasmine/lib/jasmine.css"> <link rel="stylesheet" type="text/css" href="../../../thirdparty/jasmine/lib/jasmine.css">
<script type="text/javascript" src="../../../thirdparty/jasmine/lib/jasmine.js"></script> <script type="application/javascript" src="../../../thirdparty/jasmine/lib/jasmine.js"></script>
<script type="text/javascript" src="../../../thirdparty/jasmine/lib/jasmine-html.js"></script> <script type="application/javascript" src="../../../thirdparty/jasmine/lib/jasmine-html.js"></script>
<script type="text/javascript" > <script type="application/javascript" >
/** /**
* This is the javascript under test * This is the javascript under test
*/ */
@ -36,7 +36,7 @@
</script> </script>
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="application/javascript">
jasmine.getEnv().addReporter(new jasmine.TrivialReporter()); jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute(); jasmine.getEnv().execute();
</script> </script>

View File

@ -54,7 +54,7 @@
</head> </head>
<body> <body>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/svn/trunk/qunit/testrunner.js"></script> <script type="application/javascript" src="http://jqueryjs.googlecode.com/svn/trunk/qunit/testrunner.js"></script>
<h1>i18nTest</h1> <h1>i18nTest</h1>
<h2 id="banner"></h2> <h2 id="banner"></h2>
<h2 id="userAgent"></h2> <h2 id="userAgent"></h2>

View File

@ -1121,13 +1121,13 @@ class Requirements_Backend
foreach($this->getJavascript() as $file) { foreach($this->getJavascript() as $file) {
$path = Convert::raw2xml($this->pathForFile($file)); $path = Convert::raw2xml($this->pathForFile($file));
if($path) { if($path) {
$jsRequirements .= "<script type=\"text/javascript\" src=\"$path\"></script>\n"; $jsRequirements .= "<script type=\"application/javascript\" src=\"$path\"></script>\n";
} }
} }
// Add all inline JavaScript *after* including external files they might rely on // Add all inline JavaScript *after* including external files they might rely on
foreach($this->getCustomScripts() as $script) { foreach($this->getCustomScripts() as $script) {
$jsRequirements .= "<script type=\"text/javascript\">\n//<![CDATA[\n"; $jsRequirements .= "<script type=\"application/javascript\">\n//<![CDATA[\n";
$jsRequirements .= "$script\n"; $jsRequirements .= "$script\n";
$jsRequirements .= "\n//]]>\n</script>\n"; $jsRequirements .= "\n//]]>\n</script>\n";
} }