Merge pull request #564 from Klemart3D/master

Remove "text/javascript" type on <script> tags to be compliant with HTML5
This commit is contained in:
Amauri CHAMPEAUX 2021-02-22 11:41:21 +01:00 committed by GitHub
commit fef0562e07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -27,9 +27,9 @@ Bonus:
# How to use # How to use
```html ```html
<script type="text/javascript" src="/tarteaucitron/tarteaucitron.js"></script> <script src="/tarteaucitron/tarteaucitron.js"></script>
<script type="text/javascript"> <script>
tarteaucitron.init({ tarteaucitron.init({
"privacyUrl": "", /* Privacy policy url */ "privacyUrl": "", /* Privacy policy url */

View File

@ -1609,7 +1609,6 @@ var tarteaucitron = {
} }
} else { } else {
script = document.createElement('script'); script = document.createElement('script');
script.type = 'text/javascript';
script.id = (id !== undefined) ? id : ''; script.id = (id !== undefined) ? id : '';
script.async = true; script.async = true;
script.src = url; script.src = url;

View File

@ -792,7 +792,7 @@ tarteaucitron.services.leadforensics = {
window.sf14gv = tarteaucitron.user.leadforensicsSf14gv; window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
(function() { (function() {
var sf14g = document.createElement('script'); sf14g.type = 'text/javascript'; sf14g.async = true; var sf14g = document.createElement('script'); sf14g.async = true;
sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js'; sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
})(); })();