[Bug 16607] New: Errors in type conversion to nullable types

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16607

           Summary: Errors in type conversion to nullable types
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
        AssignedTo: cam@mcc.id.au
        ReportedBy: Ms2ger@gmail.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org


The first step is

1. If V is undefined and the IDL type being converted to is DOMString?,
   then:
   1. If the conversion to an IDL value is being performed due to any
      of the following:
      ([TreatUndefinedAs])
      then:
      (do stuff)
2. Otherwise...

Which means nothing happens if [TreatUndefinedAs] isn't present; to allow for
fallback, it should say something more like

1. If V is undefined, the IDL type being converted to is DOMString?, and
   the conversion to an IDL value is being performed due to any of the
   following, then:
   (do stuff)
2. Otherwise...


Step 1.1, first bullet: "V is being passed as an operation argument that is
annotated with the [TreatUndefinedAs],": s/the//


Step 2: "Otherwise, if the result of calling IsCallable(V) is true, then:"
s/true/false/. Also, the same error as in step 1. (Note that this special case
reinforces my points about TreatNonCallableAsNull.)

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 3 April 2012 09:33:46 UTC