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)
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.
| Assignee | ||
Updated•25 years ago
|
| Assignee | ||
Comment 1•25 years ago
|
||
Forgot to assign to myself.
Assignee: beppe → cmanske
Status: ASSIGNED → NEW
| Assignee | ||
Comment 3•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•