@simevidas While I find Safariâs behaviour more relatable for end users (how is one supposed to know that an emoji is not single character?) the spec says that maxlength is to measured in 16-bit âcode unitsâ (sigh): https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-maxlength Even if you tried to measure in Unicode âCodepointsâ that wouldnât be intuitive for anyone whoâs not a Unicode expert. AFAIK, the birdsite counts every emoji as a fixed number of characters (2?), independent of its technical representation.
@ujay68 @simevidas WHATWG specs are less specs, and more guidelines. Browser developers have a moral obligation to break them now and then, especially when the spec says silly things like this.
W3C specs SHOULD be respected, unless they're just a snapshot of a WHATWG spec, or you have a really compelling reason.