Closed Bug 313781 Opened 20 years ago Closed 20 years ago

Renaming *.html to *.asp changes page rendering behavior in pages with stylesheets

Categories

(Core :: Layout, defect)

1.7 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: xebra314, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 On an ASP page I am making, inside a <div>, sometimes text after a </form> is put on a new line (as it should be), and sometimes it is not. If I spam refresh in the browser window, I can watch it changing back and forth between having a new line and not having a new line, seemingly at random. (That is, it doesn't always change on refresh, but it will within 10-20 refreshes.) The HTML source generated by the ASP is *NOT* changing, of this I am 100% certain, FireFox simply changes its mind on how to render the page. In fact, if I remove all scripts from the source, such that there is only HTML remaining, the problem persists, but only if the source is named *.asp. If I rename it to *.html, the problem disappears. Either way, Right Click >> View Source returns char for char identical source. The problem disappears if I completely remove the <style>...</style> paragraph, but occurs even if <style>...</style> is empty! Strangely, the problem also disappears if I remove the class="*" statements within the various HTML tags, though it doesn't seem to matter whether the classes referred to exist or not. Reproducible: Sometimes Steps to Reproduce: 1. Get the attachment I will upload in a moment. 2. Put it on a server that runs ASP. 3. Look at the page in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7. Actual Results: Sometimes this: [Text Box] (Submit Button) Texttexttexttexttexttexttexttext Sometimes this: [Text Box] (Submit Button) Texttexttexttexttexttexttexttexttext It changes at random when the page is refreshed. Expected Results: Consistent behavior.
Can you try Firefox 1.5 beta? Can you verify that your server is sending the same HTTP headers in the .asp case as the .html case?
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.7 Branch
You could verify the headers with http://web-sniffer.net/.
(In reply to comment #2) > Can you try Firefox 1.5 beta? > Can you verify that your server is sending the same HTTP headers in the .asp > case as the .html case? > I don't know, how do I check HTTP headers? The page is on an internal server so I can't use the web-sniffer application mentioned. All I can tell you for now is that when I use Firefox to view the source of the page, it's identical whether or not it came from the file with the ASP extension or the file with the HTML extension.
I just tested this in 1.5 beta 2, it exhibits no erroneous behavior.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Great to hear that it's working in 1.5. Resolving WFM ('fixed' is only used when a patch is associated with the bug).
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: