Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
1–10 of 145 posts
Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#2Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#3 function shorten(text, length)
const t = document.createElement('input')
t.maxlength = length
t.value = text
return t.value
}Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#4This breaks my use case function shorten(text, length) const t = document.createElement('input') t.maxlength = length t.value = text return t.value }
Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#5This breaks my use case function shorten(text, length) const t = document.createElement('input') t.maxlength = length t.value = text return t.value }
Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#6I've definitely been bit by this and it definitely took hours to debug
Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#7I've definitely been bit by this and it definitely took hours to debug
I'm curious, could you describe the usecase?
Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#8This breaks my use case function shorten(text, length) const t = document.createElement('input') t.maxlength = length t.value = text return t.value }
Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#9This breaks my use case function shorten(text, length) const t = document.createElement('input') t.maxlength = length t.value = text return t.value }
Re: Text exceeding maxlength will no longer be truncated when pasted in Firefox 77
#10What century are Mozilla living in? Most, even simple forms, don't use elements and submit buttons anymore, they're all aJax. Therefore this workaround will be commonly bypassed.
People can debate if this is a good or bad thing, but ultimately the problem remains: This change will cause unexpected behavior when maxlength-ed stuff no longer obeys on thousands of popular websites.
Even if sites check it server-side, that doesn't mean the user experience isn't substantially degraded relative to obeying HTML standards.
Their justification for this change is nonsensical too:
> This change mainly aims at preventing an unexpectedly truncated password from being saved.
So why not limit it to input type=password? Heck why include textareas in this change, who is using a textarea for a password box?!