Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-26 Thread Ryosuke Niwa
On Aug 22, 2013, at 1:59 AM, Anne van Kesteren wrote: > On Wed, Aug 21, 2013 at 8:19 PM, Alexey Proskuryakov wrote: >> FWIW, this is tracked for WebKit as >> . > > I think Darin's comment about the server component makes sense. My > remark was m

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-22 Thread Boris Zbarsky
On 8/22/13 9:01 AM, Charles McCathie Nevile wrote: The basic question is whether a validator should flag as a conformance error or not. It seems to me like it should. Why? It seems that it generally works in browsers, and has for a long time. Sort of. It gets you in a state where the user

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-22 Thread Charles McCathie Nevile
On Tue, 20 Aug 2013 19:33:12 +0500, Boris Zbarsky wrote: On 8/19/13 7:40 PM, Ryosuke Niwa wrote: Also, http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-maxlength-attribute says "if the input element has a maximum allowed value length, then

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-22 Thread Anne van Kesteren
On Wed, Aug 21, 2013 at 8:19 PM, Alexey Proskuryakov wrote: > FWIW, this is tracked for WebKit as > . I think Darin's comment about the server component makes sense. My remark was mostly as to what is exposed to JavaScript. I don't think we expose

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-21 Thread Alexey Proskuryakov
(re-sent from hopefully correct address) 20 авг. 2013 г., в 7:09, Anne van Kesteren написал(а): > On Tue, Aug 20, 2013 at 12:30 AM, Ryosuke Niwa wrote: >> Can the specification be changed to use the number of composed character >> sequences instead of the code-unit length? > > In a way I gues

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-20 Thread Boris Zbarsky
On 8/19/13 7:40 PM, Ryosuke Niwa wrote: Also, http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-maxlength-attribute says "if the input element has a maximum allowed value length, then the code-unit length of the value of the element's value at

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-20 Thread Jukka K. Korpela
2013-08-20 17:09, Anne van Kesteren wrote: On Tue, Aug 20, 2013 at 12:30 AM, Ryosuke Niwa wrote: Can the specification be changed to use the number of composed character sequences instead of the code-unit length? In a way I guess that's nice, but it also seems confusing that given data:tex

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-20 Thread Anne van Kesteren
On Tue, Aug 20, 2013 at 12:30 AM, Ryosuke Niwa wrote: > Can the specification be changed to use the number of composed character > sequences instead of the code-unit length? In a way I guess that's nice, but it also seems confusing that given data:text/html, pasting in U+0041 U+030A would give

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-20 Thread Jukka K. Korpela
2013-08-20 2:40, Ryosuke Niwa wrote: http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#maximum-allowed-value-length >> Why is the maxlength attribute of the input element specified to >> restrict the length of the value by the code-unit length?

Re: [whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-19 Thread Ryosuke Niwa
On Aug 19, 2013, at 4:30 PM, Ryosuke Niwa wrote: > http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#maximum-allowed-value-length > > Why is the maxlength attribute of the input element specified to restrict the > length of the value by the code-u

[whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

2013-08-19 Thread Ryosuke Niwa
Hi, http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#maximum-allowed-value-length Why is the maxlength attribute of the input element specified to restrict the length of the value by the code-unit length? This is counter intuitive for users and