Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed type='text/javascript' to pass HTML5 #193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant