Bug #85053
closedPage Validation Warning
0%
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>
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.
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
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