Closed Bug 466966 Opened 16 years ago Closed 15 years ago

location of CSS is wrong after "save as", also in firefox version 3.

Categories

(Firefox :: File Handling, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 236989

People

(Reporter: Chris.Dams.nl, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.18) Gecko/20081029 Firefox/2.0.0.18
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.18) Gecko/20081029 Firefox/2.0.0.18

Dear all,

I saved a page with frames and a stylesheet using "Save as" in the file menu. The html files for the frames were put in a subdirectory (let us call it "subdir") as well as the stylesheet. However, in the html file for the frames the link to the stylesheet was saved as <link href="subdir/docstyle.css" rel="stylesheet" type="text/css">. This is wrong: the "subdir" prefix in the href-attribute should not be there because the html is already located in subdir.

All the best,
Chris

Reproducible: Always

Steps to Reproduce:
1. create an html-document with frames and a stylesheet where the content of the frames references the stylesheet.
2. make a local copy of this page using "save as" in the file menu.
3. open this local copy in your favourite browser (i.e., firefox).
Actual Results:  
none of the information in the stylestheet is used in the displayed page.

Expected Results:  
the stylesheet should have been used. E.g., there used to be a background color that was set in the stylesheet.

This also happens in firefox 3.
Not a shell integration bug
Component: Shell Integration → File Handling
QA Contact: shell.integration → file.handling
Does the frame's parent also link to the same stylesheet?  If so, sounds like bug 236989.  It's hard to tell, because there's no link to the site in question in this bug...
Dear Boris,

Yes, the frames parent (i.e., the frameset) also references the stylesheet. I have now checked what happens if I remove the reference to the stylesheet from the frameset and not from the individual pages. The result is that this solves the problem. I.e., the indivual frames now start using the information in the stylesheet and the sylesheet is one directory level deeper than it was before (it is in one of the subdirectories that contain the content of the frames and there are two of these subdirectories for the two frames that I have).

I cannot give a link to the page because it is a page on our internal network. I suppose I could zip the whole lot and add that to the bugreport but maybe my explanation above is already enough for you to decide what to do.

All the best,
Chris
Chris, thanks for checking that!  That is in fact enough for my purposes.  ;)
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.