Title: script type=&#8221;text/javascript&#8221; not necessary with html5
Last modified: May 28, 2024

---

# script type=”text/javascript” not necessary with html5

 *  Resolved [winterfjell](https://wordpress.org/support/users/winterfjell/)
 * (@winterfjell)
 * [2 years ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/)
 * Hello Frank,
   you already know from my review that I am a big fan of youtube lyte.
   Now I noticed a warning in the w3c validator that the script type=‘text/javascript’
   is not necessary for html5 because javscript is the [default value](https://wiki.selfhtml.org/wiki/HTML/Attribute/type_(script)).
   I removed in 3 lines in wp-youtube-lyte.php and in 1 line in options.php and 
   the warning is gone. The website still works fine.
 * Maybe you cosider about testing this customisation and include it in a next update?
   Or did I miss something important.
 * Cheers Malte

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/#post-17786485)
 * yes, it’s perfectly safe not to have that attribute and for a next release (no
   ETA I’m afraid) I’ll make sure they’re not output any more. that being said; 
   there is no significant having the default value there even if the W3C validator
   flags it 😉
 *  Thread Starter [winterfjell](https://wordpress.org/support/users/winterfjell/)
 * (@winterfjell)
 * [2 years ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/#post-17788232)
 * Thanks for your quick reply. Since it is a warning and no error, there surely
   is no need to hurry. I mark thi topic as solved.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/#post-17987823)
 * just made a change on the github version, feel free to [download the zip-file](https://github.com/futtta/wp-youtube-lyte/archive/refs/heads/main.zip)
   and take it out for a spin 😉
 * best,
    frank
 *  Thread Starter [winterfjell](https://wordpress.org/support/users/winterfjell/)
 * (@winterfjell)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/#post-17987945)
 * Thank you, I really appreciate your work! While the wp-youtube-lite.php looks“
   solved” the options.php still has one entry script type=‘text/javascript’ in 
   line 349, if I get it right. And the version number in github 1.7.22 is to low
   compared to the official 1.7.23 in the WordPress plugin repository.
 * Cheers, Malte
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/#post-17989516)
 * stray type-attrib confirmed and eliminated from options.php and updated version
   number, can you have another look (would be esp. interested in confirmation the
   gutenberg alginment fixes in this version)? 🙂
 *  Thread Starter [winterfjell](https://wordpress.org/support/users/winterfjell/)
 * (@winterfjell)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/#post-17989947)
 * Thank you, Frank! Both php files are working well with the w3c validator.
 * Regarding your other question: Since I’ve deactivated the automatic embed/oembed
   feature of WordPress and insert every Youtube video as html block, I’m not sure,
   if I can be of great help. On the front end everything looks fine though.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/#post-17990209)
 * thanks for the feedback 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘script type=”text/javascript” not necessary with html5’ is closed to 
new replies.

 * ![](https://ps.w.org/wp-youtube-lyte/assets/icon-128x128.png?rev=1836005)
 * [WP YouTube Lyte](https://wordpress.org/plugins/wp-youtube-lyte/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-youtube-lyte/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-youtube-lyte/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-youtube-lyte/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 7 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/script-typetext-javascript-not-necessary-with-html5/#post-17990209)
 * Status: resolved