W3 validation errors: A script element with a src attribute must not have ...

Started by Grigorii, June 24, 2019, 08:54:45 AM

Previous topic - Next topic

Grigorii

Dear experts!
After installing new templates there are w3 validation errors:

Error: A script element with a src attribute must not have a type attribute whose value is anything other than the empty string, a JavaScript MIME type, or module.
From line 15, column 1; to line 15, column 114
sheet" />↩<script src="/components/com_jcomments/js/jcomments-v2.3.js?v=12" type="f9d1a7e303b73174bd6f28c0-text/javascript"></scri

From the sources:
<script src="/components/com_jcomments/js/jcomments-v2.3.js?v=12" type="f9d1a7e303b73174bd6f28c0-text/javascript"></script>↩
<script src="/components/com_jcomments/libraries/joomlatune/ajax.js?v=4" type="f9d1a7e303b73174bd6f28c0-text/javascript"></script>↩
<script src="/media/template/gzip.php?jquery.min-20e7dfcd.js" type="f9d1a7e303b73174bd6f28c0-text/javascript"></script>↩
<script src="/media/template/gzip.php?jquery-noconflict-84cc9279.js" type="f9d1a7e303b73174bd6f28c0-text/javascript"></script>↩
<script src="/media/template/gzip.php?jquery-migrate.min-f366b309.js" type="f9d1a7e303b73174bd6f28c0-text/javascript"></script>↩
<script src="/media/template/gzip.php?theme-e2d809b9.js" type="f9d1a7e303b73174bd6f28c0-text/javascript"></script>↩
The Joomla is the newest version 3.9.8! The template is paid proffesional template (Jp-school) developed by studio.

Is it correct to delete type="... " part?
And where is the location of the files to edit?

The webresource is: https://mathematics-tests.com

Thanks ahead!



Jörgen

Sounds like an issue for the Jp-school to handle :)

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

If the template use HTML5, type attribute is not needed
See https://www.w3schools.com/tags/tag_script.asp
But curious type f9d1a7e303b73174bd6f28c0-text/javascript ???
Try this validator https://html5.validator.nu/

Grigorii

Thank you gays for helping.
Do I correctly understanding: these errors do not have any influance for page ranking?

I try to validate by https://html5.validator.nu and ther is the only 1 trouble and 2 warnings. The Error:
Error: The itemprop attribute was specified, but the element is not a property of any item.
From line 214, column 1; to line 214, column 24
</h1>↩<h2 itemprop="headline">


StefanSTS

Joomla got the function isHtml5(), so it is setting the attribute only when necessary, but it's not implemented in VM yet.

Yes, <script> is enough for HTML5. Maybe someone got motivated to add the isHtml5 to VM and sends a patch?

Stefan

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation