element-x-android icon indicating copy to clipboard operation
element-x-android copied to clipboard

Ordered lists do not respect `start` attribute

Open ara4n opened this issue 1 year ago • 3 comments

Steps to reproduce

  1. Send a message like: "2. works for me"
  2. You see "1. works for me"
  3. Everyone else sees "2. works for me"
  4. Check the HTML, and it has:
<ol start="2">
<li>works for me</li>
</ol>

Realise that EXA is ignoring the start attribute on the ol tag.

EXI gets it right, as does EW.

Application version and app store

Whatever @kongo09 is on

ara4n avatar Apr 08 '25 11:04 ara4n

Looks like a duplicate of https://github.com/element-hq/element-x-android/issues/1522, which we de-prioritised.

jmartinesp avatar Apr 08 '25 15:04 jmartinesp

why would we de-prioritise this?

ara4n avatar Apr 09 '25 18:04 ara4n

It needs several changes in the rich text editor libraries at different levels (HTML parsing, the DOM model, the generated MD/HTML, Android, iOS, web) and it didn't seem like something that's used very often.

jmartinesp avatar Apr 10 '25 07:04 jmartinesp

Thanks Jorge for the fix. For posterity, there is still and issue (originally commented here), if the user types:

2. Line 1
4. Line 2

The result will not be what's the user has entered, but something like

2. Line 1
3. Line 2

Element Web and GitHub are also impacted by this issue, which should occur way less often hopefully.

bmarty avatar Jun 23 '25 12:06 bmarty