[jira] [Comment Edited] (OFBIZ-10492) Use application/javascript instead of text/javascript

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-10492) Use application/javascript instead of text/javascript

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-10492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560644#comment-16560644 ]

Deepak Dixit edited comment on OFBIZ-10492 at 7/28/18 6:41 AM:
---------------------------------------------------------------

As per html4 standard type is required attribute [1], and in html5 its optional and its default value is javascript mimetype[2]

I'll replace all the occurance of <script type="text/javascript" with <script type="application/javascript"

[1] https://www.w3.org/TR/html401/interact/scripts.html#h-18.2.1
[2] https://www.w3.org/TR/html50/scripting-1.html#attr-script-type



was (Author: deepak.dixit):
As per html4 standard type is required attribute [1], and in html5 its optional and its default value is javascript mimetype[2]
[1]https://www.w3.org/TR/html401/interact/scripts.html#h-18.2.1
[2]https://www.w3.org/TR/html50/scripting-1.html#attr-script-type

I'll replace all the occurance of <script type="text/javascript" with <script type="application/javascript"


> Use application/javascript instead of text/javascript
> -----------------------------------------------------
>
>                 Key: OFBIZ-10492
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10492
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL APPLICATIONS
>    Affects Versions: Trunk
>            Reporter: Deepak Dixit
>            Assignee: Deepak Dixit
>            Priority: Minor
>
>  text/javascript mimeType is obsolete, Need to use application/javascript.
> https://web.archive.org/web/20140316122853/http://www.apps.ietf.org/rfc/rfc4329.html#sec-7



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)