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

[css-regions] Region.flowFrom throwing exception

From: Andrei Bucur <abucur@adobe.com>
Date: Mon, 23 Jul 2012 17:18:09 +0100
To: Alan Stearns <stearns@adobe.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <CC3353F1.369A0%abucur@adobe.com>
Hello Alan!

The CSS Regions spec mentions that an exception is thrown when accessing the properties of a Region that's no longer one ( http://dev.w3.org/csswg/css3-regions/#the-region-interface ). However the flowFrom property looks to be more special to me because with it throwing an exception it is difficult (getComputedStyle?) to determine if an Element is region or not.
If flowFrom throws exceptions developers would often need to use try/catch blocks which I don't think is recommended for an API (exceptions hell…). However, it would be much more nice to be able to wrap flowFrom in an IF statement and then use the Region API without worrying about the object not being a region.

Received on Monday, 23 July 2012 16:18:42 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:01 UTC