maxlength shouldn't count one non-BMP character as two characters
Categories
(Core :: DOM: Editor, defect)
Tracking
()
People
(Reporter: emk, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: intl)
| Reporter | ||
Comment 1•15 years ago
|
||
| Reporter | ||
Comment 2•15 years ago
|
||
Comment 3•15 years ago
|
||
Comment 4•15 years ago
|
||
Comment 5•15 years ago
|
||
Comment 6•15 years ago
|
||
Comment 7•15 years ago
|
||
Comment 8•15 years ago
|
||
Comment 9•15 years ago
|
||
Comment 10•15 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•7 years ago
|
||
Updated•3 years ago
|
Comment 13•3 years ago
|
||
Would fixing this align all browsers on this WPT? https://wpt.fyi/results/html/semantics/forms/constraints/input-maxlength-emoji.html
Comment 14•3 years ago
|
||
No; it looks like that WPT case fails because of its use of execCommand("InsertHTML", ...), which Firefox doesn't seem to support in an <input type=text> (quite logically, IMO).
Changing the test to use execCommand("InsertText", ...) makes it pass, AFAICS from trying locally.
Comment 15•3 years ago
|
||
Oh, interesting.. I don't think there are any WPTs to cover that. Perhaps masayuki knows better..
Comment 16•3 years ago
|
||
Well, I think that the test should be rewritten with insertText because there is no agreements about serialization from HTML fragment to plaintext value in <input> and <textarea>.
Comment 17•3 years ago
|
||
I don't disagree, but that still will leave us with the interop problem with insertHTML, won't it? Should we file any issues against the spec/WPTs/etc?
Comment 18•3 years ago
|
||
Yeah, I think so. The problem about insertHTML should be discussed separately from this bug.
Description
•