Note: There are a few cases of duplicates in user autocompletion which are being worked on.

CR in a paragraph with an id attribute creates a second paragraph of same id

RESOLVED FIXED in mozilla2.0b8

Status

()

Core
Editor
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: glazou, Assigned: glazou)

Tracking

Trunk
mozilla2.0b8
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Assignee)

Description

7 years ago
Steps to reproduce:

1. in the editor, have a paragraph with id="foo" and make sure the pref making
   a CR key create a new paragraph is on
2. hit CR

Actual result: two paragraphs holding id="foo"...
Expected result: newly created paragraph has no id
(Assignee)

Comment 1

7 years ago
Created attachment 486317 [details] [diff] [review]
fix #1
Assignee: nobody → daniel
Status: NEW → ASSIGNED
Attachment #486317 - Flags: review?(ehsan)
Comment on attachment 486317 [details] [diff] [review]
fix #1

This looks good, but it requires a test as well.  Can you please add a test for it?
Attachment #486317 - Flags: review?(ehsan) → review+
(Assignee)

Comment 3

7 years ago
Created attachment 486889 [details] [diff] [review]
proposed test for fix #1
Attachment #486889 - Flags: review?(ehsan)
Comment on attachment 486889 [details] [diff] [review]
proposed test for fix #1

r=me on the XUL test, but as I mentioned to Daniel over IRC, we'd also need a simple html test case as well, which I'm going to write soon.
Attachment #486889 - Flags: review?(ehsan) → review+
Attachment #486317 - Flags: approval2.0?
Created attachment 486936 [details] [diff] [review]
HTML test case
Attachment #486936 - Flags: review?(roc)
Attachment #486317 - Flags: approval2.0? → approval2.0+
Attachment #486936 - Flags: review?(roc) → review+
Temporarily assigning it to myself so that this shows up in my "needs landing" query.  Will assign back to Daniel once I land this.
Assignee: daniel → ehsan
Whiteboard: [needs landing]
http://hg.mozilla.org/mozilla-central/rev/42ef3b083779
http://hg.mozilla.org/mozilla-central/rev/8b3c024874d5
http://hg.mozilla.org/mozilla-central/rev/2b6e6d573158
Assignee: ehsan → daniel
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → mozilla2.0b8
Version: unspecified → Trunk
Depends on: 611457
Depends on: 612625
You need to log in before you can comment on or make changes to this bug.