[richfaces-issues] [JBoss JIRA] Commented: (RF-10129) RichFaces generates 'text/javascript' but it should be 'application/javascript' according to RFC 4329

Richard Kennard (JIRA) jira-events at lists.jboss.org
Wed Jan 5 16:42:17 EST 2011


    [ https://issues.jboss.org/browse/RF-10129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573605#comment-12573605 ] 

Richard Kennard commented on RF-10129:
--------------------------------------

Note this issue is possibly a duplicate of EMBJOPR-297, though no action has been taken on that issue (possibly because it isn't clear from that bug report what action needs to be taken).

> RichFaces generates 'text/javascript' but it should be 'application/javascript' according to RFC 4329
> -----------------------------------------------------------------------------------------------------
>
>                 Key: RF-10129
>                 URL: https://issues.jboss.org/browse/RF-10129
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.3.2.SR1, 3.3.3.Final
>            Reporter: Richard Kennard
>            Priority: Minor
>             Fix For: Future_3.X
>
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> RichFaces typically generates code like...
> <script src="/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript.ui" type="text/javascript"></script>
> <script src="/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.AjaxScript.ui" type="text/javascript"></script>
> <script src="/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.ImageCacheScript.ui" type="text/javascript"></script>
> ...but the script type 'text/javascript' is obsolete according to http://www.ietf.org/rfc/rfc4329.txt. This creates warnings when using tools such as HtmlUnit:
> 05/01/2011 9:21:30 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
> WARNING: Obsolete content type encountered: 'text/javascript'.
> Apparently it should be 'application/javascript'.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list