Home » HTML » HTML_AJAX » Bug #9819
obsolete Content Type
Details
| Submitted | 2007-01-13 10:09 UTC |
|---|---|
| From | mvonarx at tiscali dot ch |
| Assigned | davidc |
| Status | Bogus |
| Package | HTML_AJAX |
| PHP Version | Irrelevant |
| OS | Windows XP SP2 |
| Roadmaps | (Not assigned) |
Comments
[2007-01-13 10:09 UTC] mvonarx at tiscali dot ch
Description:
------------
I used the default example provided with this package on my httpS website.
When the example comes to $server->handleRequest() the browser tries to open a text/javascript file (invoked by generateClient() Method)
Test script:
---------------
See "HTML/AJAX/Server.php" line 440
RFC4329 declares "text/javascript" as an obsolete Content-Type identifier. Furthermore Internet Explorer has only built in support for text/plain and text/richtext. See following link http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/overview/appendix_a.asp
To improve compatibilty please consider using
text/plain as 'Content-Type'
and/or
application/javascript as 'Content-Script-Type'
[2007-01-13 17:51 UTC] jeichorn at php dot net
The content type of text/javascript is widely supported, and im going to switch to somethign with an unknown level of support. The current code works fine in IE, IE always tries to download JavaScript when you view it directly but it works fine in a script tag.