Closed Bug 40741 Opened 25 years ago Closed 25 years ago

HTML file with no markup doesn't display

Categories

(Core :: DOM: HTML Parser, defect, P3)

x86
All
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: vidur, Assigned: harishd)

References

Details

(Keywords: testcase, Whiteboard: [nsbeta2+] [6/15] Fix in hand)

Attachments

(4 files)

A file with a text/html mimetype but containing just plain text doesn't display in Gecko. Expected behavior would be for the text to display in the default font.
I'm seeing this also with 52608 winme. this a regression?
Keywords: testcase
Ack! this is the opposite to the problem Rick fixed very recently, in bug 40060, where text/plain only displayed if it /did/ have HTML markup! Actually, if a file is sent via HTTP with the content-type "text/html", Mozilla has no option but to believe and honour that. The unknown content type autodetection only comes into play if the content type is not specified. The second attachment has five lines of alpha chars and whitespace; rendered as HTML the line breaks should not be honoured. NN 4.7 does this right. This problem will be rare except, perhaps, for webservers configured to send files as text/html by default, with "README" files or the like, but it does ammount to a loss of function, so upping severity to Major.
Severity: normal → major
Keywords: 4xp
Should have checked before clicking on [Submit], but this problem *was* present in the 2000-05-22-08-M16 nightly binary on WinNT, so it can't be due to the fix for 40060.
Sounds like a serious problem and has to be addressed for beta2. Nominating for nsbeta2. Note: javascript:"text" would display blank ( pointed out by vidur ).
Status: NEW → ASSIGNED
Keywords: nsbeta2
Attached patch Patch....Splinter Review
Whiteboard: Fix in hand
[nsbeta2+] [6/15]
Whiteboard: Fix in hand → [nsbeta2+] [6/15] Fix in hand
Blocks: 35355
FIXED.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified 2000-07-12-11-M17 : Linux 2000-07-12-09-M17 : WinNT & Win98 2000-07-12-13-M17 : Mac
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: