[Webkit-unassigned] [Bug 32809] New: Clarify conversion rules for Date type in IDL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 20 21:16:06 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=32809

           Summary: Clarify conversion rules for Date type in IDL
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tkent at chromium.org
        Depends on: 32698


HTML5 introduces HTMLInputElment::valueAsDate, and a JavaScript code can set a
value to it.
Neither HTML5 specification and WebIDL specification mention what happens in a
case of non-Date type object is specified.
  e.g. input.valueAsDate = 0
       input.valueAsDate = "1970-01-01";

WebIDL's editor draft <http://dev.w3.org/2006/webapi/WebIDL/> says
    HTML 5 uses Date, so we'll need to decide what to do with that.
    Current thoughts are to be able to state that an interface has a custom
mapping to language bindings, and to map that type to a Date in ECMAScript and
a java.util.Date in Java.

When WebIDl specification has clear binding rules for Date, we should follow
it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list