B
Bernard
Hi,
I am suddenly getting Safari script errors with the following user
agent:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML,
like Gecko) Safari/125.8
In a frameset scenario, the framesetting document (top) contains a
function:
function writeDoc(win,txt){
var doc=w.window.document;
doc.open("text/html","replace");
doc.write(s);
doc.close();
}// function
If a frame contains script such as:
<script>
top.writeDoc(top.someOtherFrameName,"<body>Hello</body>");
</script>
then Safari requests a URL in the same path of top but that ends with
"/text/html", which of course results in a server error 404, "document
not found".
Files ending with "/text/html" definitely don't exist in that case. It
looks very much like the browser is misinterpreting the
document.open() function.
Obviously the resulting HTTP request is totally bogus - there is not
even code that requests data from the network anywhere near the
function call - the document is written, not loaded.
It should write the frame so that the text "Hello" appears
Has anybody else seen this? I don't have a Mac.
Thanks,
Bernard
I am suddenly getting Safari script errors with the following user
agent:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML,
like Gecko) Safari/125.8
In a frameset scenario, the framesetting document (top) contains a
function:
function writeDoc(win,txt){
var doc=w.window.document;
doc.open("text/html","replace");
doc.write(s);
doc.close();
}// function
If a frame contains script such as:
<script>
top.writeDoc(top.someOtherFrameName,"<body>Hello</body>");
</script>
then Safari requests a URL in the same path of top but that ends with
"/text/html", which of course results in a server error 404, "document
not found".
Files ending with "/text/html" definitely don't exist in that case. It
looks very much like the browser is misinterpreting the
document.open() function.
Obviously the resulting HTTP request is totally bogus - there is not
even code that requests data from the network anywhere near the
function call - the document is written, not loaded.
It should write the frame so that the text "Hello" appears
Has anybody else seen this? I don't have a Mac.
Thanks,
Bernard