Closed Bug 1647997 Opened 4 years ago Closed 4 years ago

Number list not showing in correct sequence after you indent more and reset to indent less

Categories

(Core :: Layout: Generated Content, Lists, and Counters, defect)

71 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 54479

People

(Reporter: jamshedahmed, Unassigned)

References

Details

Attachments

(2 files)

Attached image firefox error.png

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

compose email in html using bullet points and numbers.

Actual results:

The number sequence is not showing right after i indent more and then later return to indent less. See attachment.

Expected results:

The number listing should return to sequence after you indent less.

Component: Untriaged → Layout: Generated Content, Lists, and Counters
Product: Firefox → Core

The severity field is not set for this bug.
:nordzilla, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(enordin)

Hi Jamshed Ahmed,

If possible, could you attach the exact HTML that you used as a test case?

You can use the Attach New File button and specify that your file type is an html page.

Flags: needinfo?(enordin)

Here is an example of the html.

  1. The first line the numbering starts fine
    • test
    • indent more works fine
  2. indent less jumps to 3 as you can see in this line
  3. numbering has skipped 2
  4. once again trying to indent more
    1. this time with numbers instead of bullets
    2. lets indent more one more time
      • with bullets
      • now trying indent less
    3. one more time
      • test33
    4. indent less againgoes back to 2 instead of 4 as you can see in
      this line
    5. indent less again
  5. From 5 it goes back to 3..... as you can see in this line.

This message was a "reply" via gmail using html and firefox browser
71.0(64-bit) on linux Mint

Jamshed

<div dir=3D"ltr"><div>Here is an example of the html.</div><div><ol><li>The=
first line the numbering starts fine</li><ul><li>test <br></li><li>=C2=A0i=
ndent more works fine</li></ul><li>indent less jumps to 3 as you can see in=
this line</li><li>numbering has skipped 2</li><li>once again trying to ind=
ent more</li><ol><li>this time with numbers instead of bullets</li><li>lets=
indent more one more time</li><ul><li>with bullets</li><li>now trying inde=
nt less</li></ul><li>one more time</li><ul><li>test33</li></ul><li>indent l=
ess againgoes back to 2 instead of 4 as you can see in this line</li><li>in=
dent less again</li></ol><li>From 5 it goes back to 3..... as you can see i=
n this line. <br></li></ol>This message was a "reply" via gmail u=
sing html and firefox browser 71.0(64-bit) on linux Mint</div><div>--</div>=
<div>Jamshed<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr"=
class=3D"gmail_attr">On Sat, Jul 11, 2020 at 12:07 AM Bugzilla@Mozilla &lt=
;<a href=3D"mailto:bugzilla-daemon@mozilla.org">bugzilla-daemon@mozilla.org=
</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

=20

<div style=3D"font-family:sans-serif">
................................
.......
....

When I forward the same html email to my work address, the output is fine. However, in firefox, it shows messed up as explained.

Attached image as shown in my firefox

This is how I see it in my firefox browser. However, when I click show original, it seems to show fine

The severity field is not set for this bug.
:boris, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(boris.chiou)

The format is pretty easy to be messed up after doing some indent more and indent less on both Chrome and Firefox. I can reproduce this on Firefox actually. However, perhaps we need to know how Gmail implements these commands.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(boris.chiou)

If this is a bug in Gmail, we could close this later. Confirmed this for now.

See Also: → 1651643

This may be duplicated by Bug 1548753. Indenting more/less may insert/remove <ul>/<ol>. This causes a complicated nested structure. I'd like to mark this as dup for now.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

This wrong markup is caused by html editer execCommand("indent") bug of Bug 54479

(In reply to Alice0775 White from comment #10)

This wrong markup is caused by html editer execCommand("indent") bug of Bug 54479

Thanks for clarifying this. I change the dup bug number.

See Also: 16516431548753

However, maybe both Bug 54479 and Bug 1548753 have impact on this, so I use See Also to link Bug 1548753.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: