[Bug 16607] Errors in type conversion to nullable types

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

--- Comment #1 from Cameron McCormack <cam@mcc.id.au> 2012-04-06 01:32:09 UTC ---
(In reply to comment #0)
> 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...

Ah yes, good catch.

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

Fixed.

> Step 2: "Otherwise, if the result of calling IsCallable(V) is true, then:"
> s/true/false/.

Fixed.

> Also, the same error as in step 1.

Fixed.

> (Note that this special case reinforces my points about
> TreatNonCallableAsNull.)

Don't understand this, sorry.  Just that this is a special case, and we should
try to minimise the number of special cases?

-- 
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 Friday, 6 April 2012 01:32:13 UTC