Skip to content

Conversation

andrei0x309
Copy link

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 <script type='text/javascript'> to <script>.

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'

type='text/javascript' will trigger warnings for HTML5 validation, type it's deprecated and should be removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant