Email or username:

Password:

Forgot your password?
Top-level
Sören

@DevWouter @simevidas unfortunately, W3C defines “length” as UTF-16 code units. infra.spec.whatwg.org/#string-

So Safari’s behavior is technically wrong.

3 comments
Jens Ayton

@chucker @DevWouter However, the spec defines maxlength both as a “length” and a “number of characters”, and “characters” is defined as code points, not code units. In this case the “length” is 11 and the “number of characters” is 7; the spec is malformed.

Jens Ayton

@chucker I feel quite confident that any correction will be towards the UTF-16 interpretation, for “compatibility”

Go Up