Bug: Script tag should not have type="text/javascript"

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Bug: Script tag should not have type="text/javascript"

Postby pmk65 » Wed Jan 30, 2019 3:11 pm

In HTML5 the script tag is no longer needed (and older HTMl versions default's to JavaScript)

From: https://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html
"The type attribute gives the language of the script or format of the data. If the attribute is present, its value must be a valid MIME type. The charset parameter must not be specified. The default, which is used if the attribute is absent, is "text/javascript"."
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Bug: Script tag should not have type="text/javascript"

Postby Aivars » Tue Feb 12, 2019 2:24 pm

You're probably thinking about auto-replace that replaces <script to <script type="text/javascript"></script>? Removing type probably makes sense, we'll look into it.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2453
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: Script tag should not have type="text/javascript"

Postby pmk65 » Tue Feb 12, 2019 10:38 pm

Aivars wrote:You're probably thinking about auto-replace that replaces <script to <script type="text/javascript"></script>? Removing type probably makes sense, we'll look into it.


Yep. That's the one. :)
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 12 guests

cron