![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
'Replace' is more accurate. The current document would be replaced in its entirety by the result of the pseudo-protocol execution. Here's an example: ... a href="javascript oSomething();">Test</a... |
#22
| |||
| |||
|
|
"Andrew Urquhart" <useWebsiteInSignatureToReply (AT) spam (DOT) invalid> wrote 'Replace' is more accurate. The current document would be replaced in its entirety by the result of the pseudo-protocol execution. Here's an example: ... a href="javascript oSomething();">Test</a... I just tried that example code (including all the function code that I snipped here for brevity) in Mozilla, and it did nothing. I don't think there's any way to get the "javascript:" pseudoprotocol to return a new page as you claim was its original intention. |
#23
| |||
| |||
|
|
And Opera, as configured "out of the box." Though, in both cases, I think it may only break MIME handling for text/css. |
|
and IE then changes to be conformant, making Mozilla look very silly IMO. Not yet. Did you misunderstand the thread? This is a wish list, not a list of features that already exist. |
#24
| |||
| |||
|
|
No [,] correct mime handling is in Windows XP SP2 |
|
as the cited urls above, |
#25
| |||
| |||
|
|
Jim Ley wrote: Brian wrote: And Opera, as configured "out of the box." Though, in both cases, I think it may only break MIME handling for text/css. text/plain too. Sorry for not being clearer while abbreviating my reply. What I meant was that Moz and Opera only change text/plain to text/css, apparently catering to broken web servers. |
|
I just ran a test, configuring my server to send .html files as text/plain. Lynx 2.8.3, Firefox 0.8 and Opera 7.5 all displayed plain text, with no rendering, for urls that corresponded to an .html file. Only IE 6/WinXP broke the rfc, displaying such urls rendered as HTML documents. Mind you, I have not upgraded to the latest service pack, and, given how long upgrades take on dialup, I probably won't anytime soon. Thus, I cannot test Microsoft's claims. Aside: I know of no browser which changes text/css to anything else. This is a wish list, not a list of features that already exist. No correct mime handling is in Windows XP SP2 as the cited urls above Rubbish. How does a file extension relate to a url on the client end? |
#26
| |||
| |||
|
|
There's this page requesting people to add their wishes for IE7. http://channel9.msdn.com/wiki/defaul...netExplorerFea tureRequests "If you have to ask..." I mean what more do we want but W3C standards etc.? |
#27
| |||
| |||
|
|
Jim Ley wrote: it's just a poorly chosen default which is different.) Apache can be configured to use a different default, of course. BTW, I'm curious: what would you choose as default? |
|
The matching content-type to extension does actually seem logical to me for downloading files (it's not rendering, the quote about file extensions is to do with when downloading files) . Which is it? Does IE Win sp2 follow the rfc or not? |
|
It seems more sensible for a Windows browser to add a sensible extension based on the content-type, not determine the content-type based on what it thinks the file extension is. |
#28
| ||||||||
| ||||||||
|
|
(I also don't agree Apache defaulting unknown files to text/plain is particularly a bug in apache, Is there anything in http protocols which says what should happen? |
|
Apache can be configured to use a different default, of course. |
|
True, I'm relying on (a literal interpretation of) the msdn link provided earlier in the thread, in particular the part about file extensions, which should play no role in content type on the client end. |
|
Which is it? Does IE Win sp2 follow the rfc or not? |
|
In any case, the content-type should be definitive, whether the content-type is markup or binary. If you feel otherwise, then your complaint is not that Firefox (and Opera; you singled out Firefox while letting Opera off the hook) do *not* break the protocol. |
|
It seems more sensible for a Windows browser to add a sensible extension based on the content-type, |
|
You seem to have read more into the MS announcement than I did. I cannot say that you were wrong to do so, but I understood the note about content-type as being directed at web server admins, |
|
I tried to find the page again to reread it, but I cannot find it anymore. |
#29
| |||
| |||
|
|
I've got a script called something.cgi which, when called with the first set of parameters, delivers the text/html HTML page containing img src="something.cgi?..." ...>. Then, when the browser actions this <img src=...> tag, the same script is called with a different parameter, which tells the script to return the image/jpeg. In both cases the filename extension is .cgi So what kind of sow's ear is IE going to make of that, based on MS's description of what they're doing in SP2? At the moment, I don't know. |
|
You seem to have read more into the MS announcement than I did. I cannot say that you were wrong to do so, but I understood the note about content-type as being directed at web server admins, That's how I read it, too. |
#30
| |||
| |||
|
|
Choosing if to offer a download link, or prevent downloading is not against the RFC (since it's not actually acting on the mime-type other than as it's described, it's just preventing the user from saving it) |
|
So I would say it's not against the RFC, since it trusts the mime-type, it just doesn' offer the user the opportunity to save it. At least that's my reading. |
|
(text/html for example isn't going to require a .html or .htm extension, |
![]() |
| Thread Tools | |
| Display Modes | |
| |