If you drag an emoji family with a string size of 11 into an input with maxlength=10, one of the children will disappear.

Except in Safari, whose maxlength implementation seems to treat all emoji as length 1. This means that the maxlength attribute is not fully interoperable between browsers.

I filed a WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=252900

252900 – HTML maxlength attribute treats emoji of string length 11 as length 1

@simevidas Hah! I guess https://bugs.webkit.org/show_bug.cgi?id=93196 (from 2012) can be closed now then. A relevant spec issue seems to be https://github.com/whatwg/html/issues/7861
93196 – Password fields display two replacement characters for a single supplementary Unicode symbol

@mathias I wonder if some websites consider this a strong password 😂

On strong password @simevidas

Sometimes I wonder if I should use accented characters when usin pass phrase in my native French language. But I often see systems breaking them (e.g. summer, été, becomes été)

As for your example the unicode family members in <p>...</p> you probably parsed e.textContent, and treated it as a product (e.g. first unicode is number 1, etc.) <p>1*2*3*4</p>

Because I notice that it's the boy the last. I imagine if you put another one at the end, it'll the last one