Author Topic: W3 validation errors: A script element with a src attribute must not have ...  (Read 2188 times)


  • Beginner
  • *
  • Posts: 22
  • A beginner
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:

Thanks ahead!


  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2996
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
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

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4362
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
If the template use HTML5, type attribute is not needed
But curious type f9d1a7e303b73174bd6f28c0-text/javascript ???
Try this validator


  • Beginner
  • *
  • Posts: 22
  • A beginner
Thank you gays for helping.
Do I correctly understanding: these errors do not have any influance for page ranking?

I try to validate by 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">


  • Global Moderator
  • Full Member
  • *
  • Posts: 546
  • VirtueMart Version: VM 4.2 on Joomla 4.5
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 Schumacher - 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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9777
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
and have u tried removing the wrong "type" entries?
GJC Web Design
VirtueMart and Joomla Developers - php developers
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
Contact for any VirtueMart or Joomla development & customisation