Closed
Bug 229959
Opened 21 years ago
Closed 21 years ago
background-image: url('relative url') is expanded to full http: or file: urn before saving
Categories
(SeaMonkey :: Composer, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 167262
People
(Reporter: smiths121, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5.1) Gecko/20031120
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5.1) Gecko/20031120
If you use a background-image style with the url() constructor in css with a
relative url to aid in site movement and deployment the background-image
property is re written as an absolute url.
Reproducible: Always
Steps to Reproduce:
1. Given the html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Toshiba Business Communication Division</title>
<meta content="Simon Smith" name="author">
<meta content="Re-coding of the Technical Page as XHTML for Mozilla 1.5"
name="description">
<link href="toshiban.css" type="text/css" rel="stylesheet">
</head>
<body>
<div style="background-image: url('images/LL_0019.jpg');" class="single_column">
<br>
</div>
</body></html>
as http://a_computer/index.html
2. View page
3. Edit Page
4. Publish Page
Page publishes as:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1"><title>Toshiba Business Communication Division</title>
<meta name="author" content="Simon Smith">
<meta name="description" content="Re-coding of the Technical Page as XHTML for
Mozilla 1.5">
<link rel="stylesheet" type="text/css" href="toshiban.css"></head><body>
<div class="single_column" style="background-image:
url(http://192.168.10.100/~simonsmith/ntech/images/LL_0019.jpg);">
<br>
</div>
</body></html>
Expected Results:
The URL should not be re-written as an absolute address, Mozilla should keep the
URL as an absolute address.
i.e publish as
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1"><title>Toshiba Business Communication Division</title>
<meta name="author" content="Simon Smith">
<meta name="description" content="Re-coding of the Technical Page as XHTML for
Mozilla 1.5">
<link rel="stylesheet" type="text/css" href="toshiban.css"></head><body>
<div class="single_column" style="background-image: url(images/LL_0019.jpg);">
<br>
</div>
</body></html>
Comment 1•21 years ago
|
||
Fixed after 1.5
*** This bug has been marked as a duplicate of 113173 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
wrong bug
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
*** This bug has been marked as a duplicate of 167262 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•