[Bug 12798] Default to [TreatNullAs=EmptyString]

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12798

--- Comment #13 from Allen Wirfs-Brock <allen@wirfs-brock.com> 2011-06-13 21:46:07 UTC ---
(In reply to comment #11)
> That example was just a counter example to
> "And it is what's most consistent with other JS APIs. "
> Nothing to do with string conversion ;)

It's all about string conversion.

This issue is about what to do when null is passed as an argument corresponding
to a parameter that is supposed to be a DOMString.  In general, JS code that
wants to ensure that a value is a string will use the String() function to do
the conversion.  That function is defined in terms of ToString.

ToString is also specified as the default conversion algorithm for DOMString
parameters in Web IDL 4.1.14

-- 
Configure bugmail: http://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 Monday, 13 June 2011 21:46:10 UTC