Bug Tracker

Ticket #6034: getScript_bug.html

File getScript_bug.html, 302 bytes (added by bhasden, 10 years ago)

This html file demonstrates the issue. No matter where the file is located in the website it should always request http://localhost/path/to/script.js. The bad behavior comes in when the file is located in a directory underneath the root. IE8 will continue to request the appropriate file while FF3.5 disregards the base tag and requests the script relative to the page url.

Line 
1<html>
2<head>
3        <base href="http://localhost/" />
4</head>
5<body>
6        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
7        <script language="javascript" type="text/javascript">
8                $.getScript("/path/to/script.js");
9        </script>
10</body>
11</html>