[whatwg] HTMLOptionElement::value compatibility

2009-08-02 Thread TAMURA, Kent
ribute is updated. The spec should follow this behavior. -- TAMURA Kent Software Engineer, Google

[whatwg] type=email validation is too loose for practical applications

2009-08-24 Thread TAMURA, Kent
main-part is not practical. The production accepts apparently unusable email address like "tk...@" -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Comments on the definition of a valid e-mail address

2009-08-24 Thread TAMURA, Kent
out "." restriction. This looseness was introduced for Japanese cell phone addresses. - domain-part should be [a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+ It requires at least 1 dot. The last non-dot sequence should have at least 2 characters. I have never heard requests to support for non-ASCII charact

Re: [whatwg] Comments on the definition of a valid e-mail address

2009-08-24 Thread TAMURA, Kent
- domain-part should be [a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+ Correction. "-" is allowed for domain-part. -- TAMURA Kent Software Engineer, Google

[whatwg] stepMismatch with value < min or value > max

2009-11-15 Thread TAMURA, Kent
rangeUnderflow and rangeOverflow. So I think stepMismatch should work even if value is less than min or greater than max. I'd like to clarify it. -- TAMURA Kent Software Engineer, Google

[whatwg] Removing multiple attribute from with selected files

2009-12-13 Thread TAMURA, Kent
What should happen to selected files in a case that a user selects multiple files for and then a script code removes the multiple attribute from the input element? - nothing, no change to the selected files and they will be submitted, - cleared, or - a single file remains -- TAMURA Kent

Re: [whatwg] Removing multiple attribute from with selected files

2009-12-14 Thread TAMURA, Kent
will do this someday, but it's probably rare enough that it's not worth putting effort into. Yeah, a warning seems reasonable. The current implementation of WebKit does nothing, and I might add the warning if the spec say nothing about this. Thank you. -- TAMURA Kent Software Engineer, Google

[whatwg] HTMLInputElement::valueAsNumber and NaN Infinity

2010-01-25 Thread TAMURA, Kent
AsNumber. Because 'input.valueAsDate = null' makes the value empty, I think 'input.valueAsNumber = Number.NaN' also makes the value empty. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] HTMLInputElement::valueAsNumber and NaN Infinity

2010-01-25 Thread TAMURA, Kent
On Mon, Jan 25, 2010 at 19:10, Philip Taylor wrote: On Mon, Jan 25, 2010 at 9:55 AM, TAMURA, Kent wrote: > It seems the current spec doesn't define behavior in a case of setting NaN > or Infinitiy to HTMLInputElement::valueAsNumber. http://whatwg.org/html5#float-nan : &q

[whatwg] valueAsNumber: float is not enough

2010-01-26 Thread TAMURA, Kent
och is about 1,264,492,163,000. The float type can't represent this value precisely. If we do the following with float valueAsNumber, the input value loses the data. input.type = "datetime"; input.value = "2010-01-26T08:00Z"; var num = input.valueAsNumber; input.valueAsN

[whatwg] Step base for

2010-02-10 Thread TAMURA, Kent
. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] :valid / :invalid only works in forms

2010-02-13 Thread TAMURA, Kent
didate for constraint > validation except when a condition has barred the element from > constraint validation. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Input color state: type mismatch

2010-03-29 Thread TAMURA, Kent
ation, typeMismatch won't be true. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Input color state: type mismatch

2010-04-02 Thread TAMURA, Kent
I found type=number also had no typeMismatch. If a user wants to type a negative value, he types '-' first. This state should make typeMismatch true because '-' is not a valid floating point number. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Input color state: type mismatch

2010-04-04 Thread TAMURA, Kent
On Sat, Apr 3, 2010 at 06:37, Ian Hickson wrote: On Sat, 3 Apr 2010, TAMURA, Kent wrote: > > I found type=number also had no typeMismatch. If a user wants to type a > negative value, he types '-' first.  This state should make typeMismatch > true because '-

[whatwg] Exposing visible string of an input field

2012-09-07 Thread TAMURA, Kent
eld selection APIs for email, number, and other types - JavaScript-based screen readers can read user-visible content of input fields. Strings returned by rawValue attribute may be browser-dependent and locale-dependent. However it would be useful. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Exposing visible string of an input field

2012-09-10 Thread TAMURA, Kent
ue returns the raw input while a user is editing the value and let value sanitization algorithm happen afterward. It doesn't work for type=email. Suppose an email field has "root@グーグル.com" as a display value. A screen reader reads it as "r...@xn--qcka1pmc.com" because HTM

[whatwg] Incomplete user-input in some input types

2012-09-12 Thread TAMURA, Kent
x27;s not a good user experience. Users don't expect their input strings are cleared by UA. Also, I don't like submitting empty value silently. Users expect their input strings are submitted. I think the best UI is to notify users about a field has an invalid string, and give a chance t

Re: [whatwg] Incomplete user-input in some input types

2012-11-07 Thread TAMURA, Kent
would have less impact to the standard. If no one has concern about this idea, I'd like to implement C in WebKit. On Thu, Sep 13, 2012 at 3:18 PM, TAMURA, Kent wrote: Proposal: Making an input element invalid state if the input has an invalid string specified by a user with browser UI. &

Re: [whatwg] 'datetime-local' and 'datetime' comments

2012-11-13 Thread TAMURA, Kent
not timezone agnostic, we could add something. For the moment, given the state of the implementations and the very tiny use cases that could solve, I think having this type would hurt more than help. Thanks, -- Mounir -- TAMURA Kent Software Engineer, Google

Re: [whatwg] 'datetime-local' and 'datetime' comments

2012-11-15 Thread TAMURA, Kent
I think I can do it for WebKit if WHATWG specification and W3C specification are changed so. On Thu, Nov 15, 2012 at 2:23 AM, Mounir Lamouri wrote: On 13/11/12 09:42, TAMURA, Kent wrote: The current UI implementations of Opera, iOS, and Chrome-Android spoil the HTML standard. Web authors

Re: [whatwg] 'datetime-local' and 'datetime' comments

2012-12-05 Thread TAMURA, Kent
we would need Computer-E and extra handling for invalid/ambiguous time. If UI was independent from a local timezone, only User-D/E/F could use it. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Forms-related feedback

2013-01-08 Thread TAMURA, Kent
On Wed, Nov 21, 2012 at 7:51 AM, Ian Hickson wrote: On Fri, 7 Sep 2012, TAMURA, Kent wrote: Proposal: I'd like to propose adding new IDL attribute to HTMLInputElement. readonly attribute DOMString rawValue; It returns text content which a user actually see in an input

Re: [whatwg] Forms-related feedback

2013-01-13 Thread TAMURA, Kent
cal events. Or the server might be using latest timezone > data but the UA could be using three year old data. In either case, the > absolute time in UTC could be different for the server and UA. Indeed. So, I think it's impossible for us to build reasonable UI for type=datetime. It should be removed from the specification. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Forms-related feedback

2013-01-15 Thread TAMURA, Kent
On Mon, Jan 14, 2013 at 2:19 AM, Ian Hickson wrote: On Sun, 13 Jan 2013, TAMURA, Kent wrote: So, I think it's impossible for us to build reasonable UI for type=datetime. It should be removed from the specification. In the simplest case, the UI for type=datetime doesn't

Re: [whatwg] Forms-related feedback

2013-01-15 Thread TAMURA, Kent
ector. In fact it's the precise key difference between datetime-local and datetime. I don't think so. If you make a repeating event in a region with daylight saving time, Google Calendar respects the local time which you specified. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Forms-related feedback

2013-08-20 Thread TAMURA, Kent
On Sat, Jul 13, 2013 at 6:39 AM, Ian Hickson wrote: On Wed, 9 Jan 2013, TAMURA, Kent wrote: On Wed, Nov 21, 2012 at 7:51 AM, Ian Hickson wrote: > On Fri, 7 Sep 2012, TAMURA, Kent wrote: > > > > * For date, datetime, datetime-local, month, time, week, the > > attribute

Re: [whatwg] Forms-related feedback

2013-10-17 Thread TAMURA, Kent
I know I'm proposing a strange thing. Some use-cases are just workarounds and there are ideal solutions. On Tue, Sep 24, 2013 at 5:35 AM, Ian Hickson wrote: On Wed, 21 Aug 2013, TAMURA, Kent wrote: On Sat, Jul 13, 2013 at 6:39 AM, Ian Hickson wrote: > On Wed, 9 Jan 2013, TAMURA, Ke

Re: [whatwg] for year input

2014-02-19 Thread TAMURA, Kent
o note that I can still allow the implementation to accept input from the user that contains grouping separators, even if when the internal value is set/changed the visual result will be updated to a string that does not contain grouping separators. -- TAMURA, Kent Software Engineer, Google

Re: [whatwg] for year input

2014-03-11 Thread TAMURA, Kent
ed results for users; for example, a user types in "1,234" meaning 1234 but the input takes the value 1.234. Or maybe I misunderstand? You're right. Such confusion can happen even in WebKit/Blink implementation. However, it's much better than accepting both of grouping se

Re: [whatwg] Type Date

2010-05-06 Thread TAMURA, Kent
On Fri, May 7, 2010 at 06:41, Garrett Smith wrote: Opera has native support that mostly works but failed with dates prior to 1582, last I checked. This seems reasonable. Gregorian calendar started in 1582. -- TAMURA Kent Software Engineer, Google

[whatwg] Form validation against invisible controls

2010-06-03 Thread TAMURA, Kent
x27; property of CSS isn't 'none' and no 'hidden' content attribute) I couldn't find exceptional rules for validating invisible controls in the current draft. Chrome 5 was released with a part of interactive validation, and we received a bug report about validation against invisible form controls. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Form validation against invisible controls

2010-06-03 Thread TAMURA, Kent
user agents may report a script error. This sentence is about process against controls of which validation result is invalid. I think UA doesn't need to validate such controls. The Chrome bug report is here: http://code.google.com/p/chromium/issues/detail?id=45640 2010/6/4 TAMURA, Kent >

Re: [whatwg] Form validation against invisible controls

2010-06-13 Thread TAMURA, Kent
dation for existing sites as possible. e.g. disabling interactive form validation for documents without "". On Fri, Jun 4, 2010 at 00:16, TAMURA, Kent wrote: > An element is a "candidate for constraint validation" if > 1. it is a validatable type, >e.g. tr

[whatwg] typeMismatch for type=number (Re: Input color state: type mismatch)

2010-07-22 Thread TAMURA, Kent
On Sat, Apr 3, 2010 at 06:37, Ian Hickson wrote: On Sat, 3 Apr 2010, TAMURA, Kent wrote: > > I found type=number also had no typeMismatch. If a user wants to type a > negative value, he types '-' first. This state should make typeMismatch > true because '-

Re: [whatwg] Input color state: type mismatch

2010-07-28 Thread TAMURA, Kent
Please see http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-July/027243.html In short words, I disagree with the current spec. On Wed, Jul 28, 2010 at 08:45, Ian Hickson wrote: On Mon, 5 Apr 2010, TAMURA, Kent wrote: > On Sat, Apr 3, 2010 at 06:37, Ian Hickson wrote: > >

Re: [whatwg] Form validation against invisible controls

2010-08-04 Thread TAMURA, Kent
, we still have compatibility issues and we can't force authors to update their web pages. I'm wondering UA should show a dialog with "The web page has invisible invalid form fields. Do you want to submit the form? [Yes] [No]". -- TAMURA Kent Software Engineer, Google

[whatwg] without keyboard editing

2010-10-31 Thread TAMURA, Kent
uot;required" by default, and sanitization algorithm may be different. I'm not sure how to solve this issue. Introducing new content attribute or another number type? -- TAMURA Kent Software Engineer, Google

Re: [whatwg] without keyboard editing

2010-11-02 Thread TAMURA, Kent
On Tue, Nov 2, 2010 at 05:50, Aryeh Gregor wrote: On Sun, Oct 31, 2010 at 10:31 PM, TAMURA, Kent wrote: > The number type control in Opera and WebKit allow a user to > input > out-of-range value even if the control has min=1 and max=16 attributes. > It's not > a go

Re: [whatwg] without keyboard editing

2010-11-10 Thread TAMURA, Kent
fy requirements of actual Web application UI and type=number won't be used widely. On Mon, Nov 1, 2010 at 11:31, TAMURA, Kent wrote: A team in Google tried to use for a product, and they decided not to use it. What they needed was a control to select an integer from a specific integer

Re: [whatwg] Constraint validation feedback (various threads)

2011-03-23 Thread TAMURA, Kent
using some compatibility issues about maxlength. http://www.google.com/support/forum/p/Chrome/thread?tid=4f612fe2abafc365&hl=en -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Constraint validation feedback (various threads)

2011-03-24 Thread TAMURA, Kent
more cases where text gets shorter as you type. Ishii-san, It's not related to this thread. Anyway, do you have any concern about the behaviors of the current browsers? -- TAMURA Kent Software Engineer, Google

[whatwg] Placeholder visibility on focus

2011-07-19 Thread TAMURA, Kent
t when the field is focused. * autofocus + placeholder is useless in the current specification. -- TAMURA Kent Software Engineer, Google

Re: [whatwg] Localization on script level and non form field

2012-01-26 Thread TAMURA, Kent
Form control presentations and ECMA Globalization API should be synchronized. We might need HTMLInputElement::numberFormat to set/get a Globalization.NumberFormat object. http://wiki.ecmascript.org/doku.php?id=globalization:specification_drafts -- TAMURA Kent Software Engineer, Google