W3C home > Mailing lists > Public > www-style@w3.org > August 2012

[css-regions] Invalid access in NamedFlowCollection

From: Mihai Balan <mibalan@adobe.com>
Date: Wed, 29 Aug 2012 17:46:43 +0100
To: "WWW Style (www-style@w3.org)" <www-style@w3.org>
Message-ID: <32E5AE8565CC6142BA0AAFA5A95697E0461FAFDF04@eurmbx01.eur.adobe.com>
Hi all,
Currently the spec says that should a script try to retrieve an inexistent object from a NamedFlowCollection, either by using an out-of-range index or an invalid name, it should return *null*.
I think it would be better to return *undefined* instead, for a couple of reasons:

*         Currently all JavaScript and HTMLCollection-s return *undefined* for invalid keys (e.g. Array, document.forms, document.querySelectorAll() )

*         Also, in general, null doesn't mean that there's nothing there, but actually that something might be there, but it's not a definite object (yet)

Anyone has any thoughts on this?

Thanks,
m.

Mihai Balan | Quality Engineer / WebKit team |  mibalan@adobe.com<mailto:mibalan@adobe.com> | +4-031.413.3653 / x83653 | Adobe Systems Romania
Received on Wednesday, 29 August 2012 16:47:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:59 GMT