Closed Bug 662034 Opened 13 years ago Closed 13 years ago

Contenteditable generates <br/>s instead if <p> on Return key

Categories

(Firefox :: General, defect)

4.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 449243

People

(Reporter: gurdiga, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

This is a duplicate of #486931, but that one is closed as unconfirmed and I'm creating this one just in case.

So, the issue is still present in the latest Firefox (Ubuntu). I have nothing to add to the description given in #486931.


Reproducible: Always

Steps to Reproduce:
1. Go to http://html5demos.com/contenteditable;
2. Got to the end of the list in the sample contenteditable element and press <End>
3. Press <Return> twice in a raw;
4. type in some more lines ended by <Return>

Inspect the markup generated after the ordered list.

Actual Results:  
The new text lines are positioned in DOM immediately in the contenteditable element and are text nodes separated with <br/>s.

Expected Results:  
The new lines of text added after the list should be <p> elements.
Bug 486931 isn't "closed" and UNCONFIRMED.

UNCONFIRMED is the very first state a bug gets into when it enters Bugzilla (if the reporter doesn't have higher permissions).

So it's OK to continue the bug investigation in bug 486931.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Version: unspecified → 4.0 Branch
Uh... this is not a duplicate of bug 486931.  This bug is about the action enter should take; that bug is about editing arbitrary XML.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Boris is right.

I probably had a wrong number in my copy/paste buffer: I intended to paste this number 449243, this is the other bug: "contenteditable stuck inserting <br> instead of <p> in some cases", and it is RESOLVED INCOMPLETE.

I'm sorry I've messed things up.
Ah, that makes more senese.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → DUPLICATE
Reporter, slightly off topic, but anyway... 

The trick to make bug numbers become links is called Autolinkification, and you can read more about it here:
http://www.bugzilla.org/docs/4.0/en/html/hintsandtips.html#AEN2591

Basically it's very easy. Just write something like bug 449243 in the text and it will become a link automatically.
You need to log in before you can comment on or make changes to this bug.