Closed Bug 74039 Opened 25 years ago Closed 25 years ago

Don't convert <body> tag attributes to lowercase when editing in HTML Source mode

Categories

(Core :: DOM: Editor, defect, P3)

All
Windows NT
defect

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: cmanske, Assigned: cmanske)

Details

There's a nasty line in nsHTMLEditor::RebuildDocumentFromSource(): bodyString.ToLowerCase(); that is part of the hack to reapply <body> tag attributes when going from HTML Source back to Normal mode. A very bad side effect is that the URL for a "background" attribute is converted to lower case, which breaks setting the background image correctly. The problem to solve is how to replace "body" with "div" in the HTML source string for the body tag in a non-case-sensitive manner. It will be better to solve this after mjudge lands all of his extensive API and string type changes comming soon.
Status: NEW → ASSIGNED
Depends on: 66319
Target Milestone: --- → mozilla0.9
Forgot to assign to myself.
Assignee: beppe → cmanske
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
No longer depends on: 66319
P3
Priority: -- → P3
Checked in. r=mjudge, sr=sfraser. The issue about searching for "<body" in a case-insensitive manner will be filed as a separate bug.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified on 8-27 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.