Hacker News new | ask | show | jobs
by jasonthorsness 411 days ago
Huh, apparently HTML input attributes like maxsize don't try anything fancy and just count UTF-16 code units same as JavaScript strings (I guess it makes sense...) With the prevalence of emojis this seems like it might not do the right thing.

https://html.spec.whatwg.org/multipage/input.html#attr-input...