Closed Bug 110378 Opened 24 years ago Closed 22 years ago

capitalized HEAD element causes data loss in composer

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.3alpha

People

(Reporter: anthonyd, Assigned: akkzilla)

References

Details

(Keywords: dataloss, polish)

Attachments

(1 file)

enter the following html in html source mode of the editor: <html><head></head> <body><p> test </p></body> </html> click on normal tab for normal view with editor, anf then go back to html source mode. Everything looks fine. Now change the <head> and </head> to capitals; <HEAD> and </HEAD> and add or change some of the content in the body mode. Click on the Normal view tab, and then back to html source tab, data was lost.
Target Milestone: --- → Future
Keywords: dataloss
The issue here seems to be that the head tag is only recognized if the case is all lower-case: var beginHead = htmlSource.indexOf("<head"); -->cmanske
Assignee: kin → cmanske
Keywords: nsbeta1, polish
OS: Windows 2000 → All
Hardware: PC → All
Summary: capitlized HEAD element causes data loss in composer → capitalized HEAD element causes data loss in composer
Target Milestone: Future → mozilla1.2beta
*** Bug 143368 has been marked as a duplicate of this bug. ***
nsbeta1+ -- it's dataloss, and should be easy to fix.
Keywords: nsbeta1nsbeta1+
load balance-->akkana
Assignee: cmanske → akkana
Target Milestone: mozilla1.2beta → mozilla1.3alpha
This simple patch fixes the problem.
Attachment #107397 - Flags: superreview?(kin)
Attachment #107397 - Flags: review?(cmanske)
Comment on attachment 107397 [details] [diff] [review] Fix: use CaseInsensitiveFindInReadable sr=kin@netscape.com
Attachment #107397 - Flags: superreview?(kin) → superreview+
Comment on attachment 107397 [details] [diff] [review] Fix: use CaseInsensitiveFindInReadable Kathy offered to review.
Attachment #107397 - Flags: review?(cmanske) → review?(brade)
Comment on attachment 107397 [details] [diff] [review] Fix: use CaseInsensitiveFindInReadable great work! r=brade
Attachment #107397 - Flags: review?(brade) → review+
Fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
the capitalized <HEAD></HEAD> is converted to lowercase, and there's no longer dataloss. vrfy'd with 2003.02.19 on linux rh8.0.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: