VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Grigorii on June 24, 2019, 08:54:45 AM

Title: W3 validation errors: A script element with a src attribute must not have ...
Post by: Grigorii on June 24, 2019, 08:54:45 AM
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!


Title: Re: W3 validation errors: A script element with a src attribute must not have ...
Post by: Jörgen on June 24, 2019, 09:29:42 AM
Sounds like an issue for the Jp-school to handle :)

Jörgen @ Kreativ Fotografi
Title: Re: W3 validation errors: A script element with a src attribute must not have ...
Post by: Studio 42 on June 24, 2019, 11:09:16 AM
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/
Title: Re: W3 validation errors: A script element with a src attribute must not have ...
Post by: Grigorii on June 24, 2019, 12:45:34 PM
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">

Title: Re: W3 validation errors: A script element with a src attribute must not have ...
Post by: StefanSTS on June 25, 2019, 20:56:26 PM
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

Title: Re: W3 validation errors: A script element with a src attribute must not have ...
Post by: GJC Web Design on July 01, 2020, 10:05:06 AM
and have u tried removing the wrong "type" entries?