Jump to content

JS declaration wrong


durangod

Recommended Posts

I was trying to get this to pass W3C and managed to patch some of the addon issues but the WHMCS stuff i will post here so you know.

 

javascript wrong declaration. All of these portal files (im assuming the other template styles are the same way) have the wrong declaration.

 

<script language="javascript"> is an ancient and outdated way of declaring.

 

it should be

 

<script type="text/javascript" language="javascript">

 

or the preference today is just

 

<script type="text/javascript">

 

im assuming you might have some older coders there that its hard to break bad habbits, happens to us all, took me forever to get used to self closing img with / lol

 

see image attached..

 

jsdec.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated