Closed Bug 241471 Opened 20 years ago Closed 20 years ago

Server-relative <base href not evaluated

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 553074

People

(Reporter: hadmut, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040401 Debian/1.6-4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040401 Debian/1.6-4

Hi,

the <base href="..."> is evaluated only if the given URL base starts
with http://servername/... which requires to know the server name when 
writing a web page.

Consider something like this:

<html>
<head><title></title>
<base href="/images/">
</head>

<body>
<img src=something.gif>
</body>
</html>


which works with konqueror and IE, but not with Mozilla.
In this case mozilla ignores the base.
I'm not absolutely sure whether this is really a bug
or a HTML requirement.

Same problem with CSS to be loaded.

regards
Hadmut



Reproducible: Always
Steps to Reproduce:
1. Write a web page as given in the Details section
2. place some image as described
3. view the web page

Actual Results:  
Image is loaded as without the base declaration

Expected Results:  
image should be loaded from the base declaration.
> I'm not absolutely sure whether this is really a bug or a HTML requirement.

From http://www.w3.org/TR/html401/struct/links.html#edef-BASE :

  href = uri [CT]
    This attribute specifies an absolute URI that acts as the base URI for
    resolving relative URIs. 

So it is in fact an HTML requirement to behave as Mozilla does.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.