[Webkit-unassigned] [Bug 252900] New: HTML maxlength attribute treats emoji of string length 11 as length 1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 24 06:41:55 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=252900

            Bug ID: 252900
           Summary: HTML maxlength attribute treats emoji of string length
                    11 as length 1
           Product: WebKit
           Version: Safari 16
          Hardware: Mac (Intel)
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sime.vidas at gmail.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

Created attachment 465151

  --> https://bugs.webkit.org/attachment.cgi?id=465151&action=review

Test page

Steps to reproduce:

1. Open attached test page in Safari
2. Copy the rendered family emoji and paste it into the <input maxlength=10> field

What happened:

The emoji fully appears inside the input. You will be able to paste the emoji up to 10 times.

What should have happened:

The emoji should have been altered. In Chrome and Firefox, one of the children in the depicted family disappears. The full emoji has a string size of 11, so it shouldn’t fully fit into an <input> with a  maxlength of 10. 

It seems that Safari’s maxlength implementation treats all emoji as length 1.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230224/bdbba239/attachment.htm>


More information about the webkit-unassigned mailing list