Project

General

Profile

Actions

Bug #85053

closed

Page Validation Warning

Added by Kurt Kunig over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-05-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
5.6
Tags:
javascript
Complexity:
Is Regression:
Sprint Focus:

Description

Validating a TYPO3 page will show this warning:

Warning: The type attribute is unnecessary for JavaScript resources.

You should delete the type attribute in rendering javascripts like this one e.g.:

<script src="//www.xxx.de/typo3temp/assets/compressed/merged-291106cf3a435563cae4efe5a547f0d9-2afc84d5856f6680dfa59f3316fe0dc3.js?1526028032" type="text/javascript"></script>


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #45512: Make the type attribute optional on script, style and link elementsClosed2013-02-15

Actions
Actions #1

Updated by Benni Mack over 6 years ago

Hey Kurt,

thanks for the report.

Found this - https://stackoverflow.com/questions/4195427/is-the-type-attribute-necessary-for-script-tags

Basically - if we're running HTML5, we should skip the tag, otherwise we should keep it.

Actions #2

Updated by Benni Mack over 6 years ago

  • Status changed from New to Accepted
Actions #3

Updated by Riccardo De Contardi over 6 years ago

  • Related to Bug #45512: Make the type attribute optional on script, style and link elements added
Actions #4

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Accepted to Closed

I close this issue as a duplicate of #45512 , please continue the discussion there, thank you.
I have added there a reference to this issue to keep track of it

If you think that this is the wrong decision, then please reopen it or open a new ticket and add a relation to this ticket number.

Thank you and best regards

Actions

Also available in: Atom PDF