flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

[BUG] When using lower/upper alpha in html code

Open LuuPNH opened this issue 3 years ago • 2 comments

Describe the bug:

  • When the html code is using the style="list-style-type:upper-alpha" to mark the required index, it gives an error.

HTML to reproduce the issue:

  • Example code: image Expected behavior:

  • Fix it so I can bookmark it. -I look forward to the example code:

         A. Subscribe to calendar
         B. Hello World
    

Screenshots:

Device details and Flutter/Dart/flutter_html versions: image

Stacktrace/Logcat image

Additional info:

  • I tried to use it by changing the code at package it did not report an error, but the case it handled was not normal.
  • Result for my code example applying what I changed in attached image (line 791 in code): 0. Subscribe to calendar 0. Hello World image

LuuPNH avatar Mar 01 '22 02:03 LuuPNH

Yes I can reproduce the crash with:

<ol>
<li style="list-style-type: upper-alpha"><strong>Subscribe to calendar</strong></li>
<li style="list-style-type: upper-alpha"><strong>Hello world </strong></li>
</ol>

erickok avatar Jun 10 '22 09:06 erickok

A workaround right now is to apply the list style type on the <ol> directly (or even use <ul>.

<ol style="list-style-type: upper-alpha">
<li><strong>Subscribe to calendar</strong></li>
<li><strong>Hello world </strong></li>
</ol>

But yes we need to fix this.

erickok avatar Jun 10 '22 09:06 erickok