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•14 years ago
|
||
Reporter | ||
Comment 2•14 years ago
|
||
![]() |
||
Comment 3•14 years ago
|
||
![]() |
||
Comment 4•14 years ago
|
||
Comment 5•14 years ago
|
||
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
Comment 8•14 years ago
|
||
Comment 9•14 years ago
|
||
![]() |
||
Comment 10•14 years ago
|
||
![]() |
||
Comment 11•9 years ago
|
||
Comment 12•7 years ago
|
||
Updated•3 years ago
|
Comment 13•2 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•2 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•2 years ago
|
||
Oh, interesting.. I don't think there are any WPTs to cover that. Perhaps masayuki knows better..
Comment 16•2 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•2 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•2 years ago
|
||
Yeah, I think so. The problem about insertHTML
should be discussed separately from this bug.
Description
•