[richfaces-issues] [JBoss JIRA] Created: (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 07:00:18 EST 2011


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
            Reporter: Richard Kennard
            Priority: Minor


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