Closed Bug 233261 Opened 21 years ago Closed 21 years ago

DL/DT/DD polish

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla1.7alpha

People

(Reporter: glazou, Assigned: glazou)

Details

Attachments

(1 file)

When one selects Format > List > Definition Term|Definition, the CR key does not create the corresponding Definition|Term. That's *very* annoying and a major user feedback.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.7alpha
Attachment #140743 - Flags: superreview?(dbaron)
Attachment #140743 - Flags: review?(mozeditor)
Comment on attachment 140743 [details] [diff] [review] fix #1 Do you need to call CopyLastEditableChildStyles when creating a new dd or dt? If I was typing with a green text color (or a particular font or whatever) I'd expect that to continue (or is that happening already)?
Kathy: when I create a new element but switch the element type, from dd to dt or vice-versa, I don't need that because the semantics of dt and dd are different. It makes no sense to preserve a bold style assigned to a dt when you move the caret to the following dd :-)
Comment on attachment 140743 [details] [diff] [review] fix #1 sr=dbaron, assuming you get owner/peer review, although the following: >+ nsAutoString listTag((nodeAtom == nsEditProperty::dt) ? NS_LITERAL_STRING("dd") : NS_LITERAL_STRING("dt")); would perhaps be better as: nsAutoString listTag; nodeAtom->ToString(listTag);
Attachment #140743 - Flags: superreview?(dbaron) → superreview+
(In reply to comment #4) > >+ nsAutoString listTag((nodeAtom == nsEditProperty::dt) ? NS_LITERAL_STRING("dd") : NS_LITERAL_STRING("dt")); > > would perhaps be better as: > > nsAutoString listTag; > nodeAtom->ToString(listTag); dbaron: no; that line switches dd and dt... your rewriting does not.
Attachment #140743 - Flags: review?(mozeditor) → review+
Comment on attachment 140743 [details] [diff] [review] fix #1 requesting approval for 1.7 checkin: this fixes a VERY annoying bug in Composer; that bug makes it almost impossible to edit a DL/DT/DD list without dreaming of killing the whole editor team... We had quite a lot of user feedback about it. The fix is simple and harmless, has no impact outside of DL/DT/DD anyway. It is implemented in Nvu 0.20 and works just fine.
Attachment #140743 - Flags: approval1.7?
Attachment #140743 - Flags: approval1.7? → approval1.7+
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: