Closed Bug 52042 Opened 24 years ago Closed 24 years ago

"Escape" classes inserted by our recognizer with moz-something

Categories

(Core :: Networking, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: BenB, Assigned: BenB)

Details

Attachments

(1 file)

Reproduce: 1. Reply to a plaintext msg with an URL using the HTML composer 2. Send as HTML In the HTML source of the quote, you'll see a lot of tags inserted by our recognizer, and they contain classes invented by me. We have to recognize them in various places, and we should make sure we don't collide with user-specified (possibly in webpages) classes. Do this by prepending "-moz-". This is what Gecko uses for "proprietary" stuff, too. I.e. this bug is about future-compatibility.
Severity: normal → major
Status: NEW → ASSIGNED
Priority: P3 → P1
Target Milestone: --- → M18
What do you mean by classes? -moz- is for css properties.
> What do you mean by classes? e.g. <a class="-moz-txt-link" href="...">...</a> > -moz- is for css properties. But I can use it for classes, too, not?
In theory, you can, although CSS1-2 idents can't start with -. You might just want to use moz- instead of -moz-, since defining classes is perfectly legitimate, and the moz- establishes sort of namespace...
> CSS1-2 idents can't start with - ops, tnx for the notice!. Will use moz- instead.
The hardest part was catching all places, where the classes were used. Will attach patch. mscott, please review. The patch also contains various other minor changes, most notably updates for the stylesheet.
Keywords: review
Summary: "Escape" classes inserted by our recognizer with -moz-something → "Escape" classes inserted by our recognizer with moz-something
BTW: Part of the fix (changes in nsMsgCompose.cpp) is in the fix for bug 44552.
Attached patch Fix, Version 1Splinter Review
checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: