syntaxhighlighter icon indicating copy to clipboard operation
syntaxhighlighter copied to clipboard

removed type='text/javascript' to pass HTML5

Open andrei0x309 opened this issue 3 years ago • 0 comments

type='text/javascript' will trigger warnings for HTML5 validation, type it's deprecated and should be removed.

Fixes #

Change in syntaxhighlighter.php line 940 from

There are two places where syntaxhighlighter.php will include the script tag with the deprecated attribute, but the first one is for the admin interface so is less important but the one on 940, will echo the script to the frontend, where is more important for the DOM to pass validation.

Deprecated Code

type='text/javascript'

andrei0x309 avatar Feb 16 '21 23:02 andrei0x309