Skip to content

Commit

Permalink
HTML Compliance - Attribute "type" on Element <script>
Browse files Browse the repository at this point in the history
Warning: The type attribute is unnecessary for JavaScript resources.

HTML5: Edition for Web Authors
http://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html
The default, which is used if the attribute is absent, is "text/javascript".

The Script element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type.
  • Loading branch information
NOYB authored and fichtner committed Jan 21, 2018
1 parent b5cb523 commit 5533702
Show file tree
Hide file tree
Showing 85 changed files with 89 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

function table_tr_kv(key, value) {
return "<tr><td>" + key + "</td><td>" + value + "</td></tr>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#}

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_redis':'/api/redis/settings/get'};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_GeneralSettings':"/api/helloworld/settings/get"};
mapDataToFormUI(data_get_map).done(function(data){
Expand Down
2 changes: 1 addition & 1 deletion dns/dyndns/src/www/services_dyndns.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

?>
<body>
<script type="text/javascript">
<script>
$( document ).ready(function() {
// delete service action
$(".act_delete_service").click(function(event){
Expand Down
2 changes: 1 addition & 1 deletion dns/dyndns/src/www/services_dyndns_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function is_dyndns_username($uname)
?>
<body>
<?php include("fbegin.inc"); ?>
<script type="text/javascript">
<script>
$( document ).ready(function() {
$("#type").change(function(){
$(".opt_field").hide();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
endforeach;?>
</tbody>
</table>
<script type="text/javascript">
<script>
function dyndns_getstatus()
{
scroll(0,0);
Expand Down
2 changes: 1 addition & 1 deletion dns/rfc2136/src/www/services_rfc2136.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

?>
<body>
<script type="text/javascript">
<script>
$( document ).ready(function() {
// delete service action
$(".act_delete_service").click(function(event){
Expand Down
2 changes: 1 addition & 1 deletion dns/rfc2136/src/www/widgets/widgets/rfc2136.widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
endforeach;?>
</tbody>
</table>
<script type="text/javascript">
<script>
function rfc2136_getstatus()
{
scroll(0,0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

$( document ).ready(function() {
/*************************************************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function () {
var data_get_map = {'frm_general_settings':"/api/postfix/general/get", 'frm_antispam_settings':"/api/postfix/antispam/get"};
mapDataToFormUI(data_get_map).done(function (data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

$( document ).ready(function() {
/*************************************************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

$( document ).ready(function() {
/*************************************************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#}

<script type="text/javascript">
<script>
window.redis_installed = {{ redis_installed ? 'true' : 'false' }};
$( document ).ready(function() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_general_settings':"/api/collectd/general/get"};
mapDataToFormUI(data_get_map).done(function(data){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</div>
</div>

<script type="text/javascript">
<script>

// Put API call into a function, needed for auto-refresh
function update_neighbor() {
Expand Down
2 changes: 1 addition & 1 deletion net-mgmt/snmp/src/www/services_snmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

?>
<body>
<script type="text/javascript">
<script>
$( document ).ready(function() {
$("#hostres").change(function(){
if ($('#hostres').prop('checked')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_general_settings':"/api/telegraf/general/get"};
mapDataToFormUI(data_get_map).done(function(data){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_input_settings':"/api/telegraf/input/get"};
mapDataToFormUI(data_get_map).done(function(data){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_output_settings':"/api/telegraf/output/get"};
mapDataToFormUI(data_get_map).done(function(data){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#}

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_zabbixagent':"/api/zabbixagent/settings/get"};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_general_settings':"/api/zabbixproxy/general/get"};
mapDataToFormUI(data_get_map).done(function(data){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.
#}


<script type="text/javascript">
<script>

function flush_table(){
$('#netTable tr').slice(2).remove()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

$( document ).ready(function() {
/*************************************************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function () {
var data_get_map = {'frm_eap_settings':"/api/freeradius/eap/get"};
mapDataToFormUI(data_get_map).done(function (data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function () {
var data_get_map = {'frm_general_settings':"/api/freeradius/general/get"};
mapDataToFormUI(data_get_map).done(function (data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function () {
var data_get_map = {'frm_ldap_settings':"/api/freeradius/ldap/get"};
mapDataToFormUI(data_get_map).done(function (data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

$( document ).ready(function() {
/*************************************************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>

function quagga_update_status() {
ajaxCall(url="/api/quagga/service/status", sendData={}, callback=function(data,status) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ POSSIBILITY OF SUCH DAMAGE.
</tbody>
</table>
</script>
<script type="text/javascript" src="/ui/js/quagga/lodash.js"></script>
<script type="text/javascript">
<script src="/ui/js/quagga/lodash.js"></script>
<script>
function translate(x) {
return x;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

#}
<script type="text/javascript" src="/ui/js/quagga/lodash.js"></script>
<script src="/ui/js/quagga/lodash.js"></script>
<script type="text/x-template" id="routestpl">
<table>
<thead>
Expand Down Expand Up @@ -58,7 +58,7 @@ POSSIBILITY OF SUCH DAMAGE.
</table>
</script>

<script type="text/javascript">
<script>
function translate(content) {
tr = {};
tr['kernel route'] = '{{ lang._('Kernel Route') }}';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ POSSIBILITY OF SUCH DAMAGE.
</table>
<% }) %>
</script>
<script type="text/javascript" src="/ui/js/quagga/lodash.js"></script>
<script src="/ui/js/quagga/lodash.js"></script>
<script>

function translate(data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ POSSIBILITY OF SUCH DAMAGE.
</table>
<% }) %>
</script>
<script type="text/javascript" src="/ui/js/quagga/lodash.js"></script>
<script src="/ui/js/quagga/lodash.js"></script>
<script>

function translate(data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$( document ).ready(function() {
var data_get_map = {'frm_general_settings':"/api/quagga/general/get"};
mapDataToFormUI(data_get_map).done(function(data){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>

function quagga_update_status() {
ajaxCall(url="/api/quagga/service/status", sendData={}, callback=function(data,status) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ POSSIBILITY OF SUCH DAMAGE.

</div>

<script type="text/javascript">
<script>

function quagga_update_status() {
ajaxCall(url="/api/quagga/service/status", sendData={}, callback=function(data,status) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>

<script type="text/javascript">
<script>
$(document).ready(function() {
var data_get_map = {'frm_rip_settings':"/api/quagga/rip/get"};
mapDataToFormUI(data_get_map).done(function(data){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

$( document ).ready(function() {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

$( document ).ready(function() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>
$( document ).ready(function() {
var gridopt = {
ajax: false,
Expand Down
2 changes: 1 addition & 1 deletion net/igmp-proxy/src/www/services_igmpproxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

?>
<body>
<script type="text/javascript">
<script>
$( document ).ready(function() {
// delete host action
$(".act_delete_entry").click(function(event){
Expand Down
2 changes: 1 addition & 1 deletion net/igmp-proxy/src/www/services_igmpproxy_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

<body>
<?php include("fbegin.inc"); ?>
<script type="text/javascript">
<script>
$( document ).ready(function() {
/**
* Aliases
Expand Down
2 changes: 1 addition & 1 deletion net/l2tp/src/www/vpn_l2tp_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

?>
<body>
<script type="text/javascript">
<script>
$( document ).ready(function() {
// delete host action
$(".act_delete_user").click(function(event){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ POSSIBILITY OF SUCH DAMAGE.

#}

<script type="text/javascript">
<script>

$( document ).ready(function() {
var data_get_map = {'general': '/api/mdnsrepeater/settings/get'};
Expand Down
Loading

0 comments on commit 5533702

Please sign in to comment.