[
https://issues.jboss.org/browse/RF-10129?page=com.atlassian.jira.plugin.s...
]
Richard Kennard commented on RF-10129:
--------------------------------------
Mind you, RFC or not, I'm seeing quite a lot of browser incompatibilities with
'application/javascript', so maybe tread carefully :)
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