W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

[Bug 12798] Default to [TreatNullAs=EmptyString]

From: <bugzilla@jessica.w3.org>
Date: Mon, 13 Jun 2011 21:46:08 +0000
To: public-script-coord@w3.org
Message-Id: <E1QWExU-0001A8-Gw@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC